# What does lock() really reads

**URL:** <https://qa.fmod.com/t/what-does-lock-really-reads/21816>\
**Category:** FMOD Engine\
**Created:** [June 29, 2024, 1:58am UTC](https://qa.fmod.com/t/what-does-lock-really-reads/21816 "2024-06-29T01:58:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [July 3, 2024, 3:33am UTC](https://qa.fmod.com/t/what-does-lock-really-reads/21816/2 "2024-07-03T03:33:15Z")

</div>

The format a sound’s data is stored in, and subsequently what format is retrieved by `lock()`, will depend on the [`FMOD_MODE`](https://www.fmod.com/docs/2.02/api/core-api-common.html#fmod_mode) used to create the sound - either PCM data, if the mode decompresses the source audio, or compressed data if a mode like [`FMOD_CREATECOMPRESSEDSAMPLE`](https://www.fmod.com/docs/2.02/api/core-api-common.html#fmod_createcompressedsample) is used.

> [@nayeem2021](#):
>
> If the format is PCM then what would be the bitrate?

A sound’s bit rate/sample rate will depend on the asset used. You can get format info on the sound with [`Sound::getFormat`](https://www.fmod.com/docs/2.02/api/core-api-sound.html#sound_getformat). However, upon data from the sound being played into the FMOD system, it will be resampled to match the [sample rate of the FMOD system’s mixer](https://www.fmod.com/docs/2.02/api/core-api-system.html#system_setsoftwareformat), which by default is 48kHz, or 24kHz on lower-spec platforms like mobile.

---

_[View the full topic](https://qa.fmod.com/t/what-does-lock-really-reads/21816)._
