# Get raw PCM data

**URL:** <https://qa.fmod.com/t/get-raw-pcm-data/14933>\
**Category:** FMOD Engine\
**Created:** [August 9, 2019, 3:43pm UTC](https://qa.fmod.com/t/get-raw-pcm-data/14933 "2019-08-09T15:43:03Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [July 9, 2024, 5:19am UTC](https://qa.fmod.com/t/get-raw-pcm-data/14933/6 "2024-07-09T05:19:03Z")

</div>

It could be caused by calling `createSound` with `FMOD_CREATECOMPRESSEDSAMPLE`

Your other thread would be a better place to continue this discussion:

> [@What does lock() really reads](https://qa.fmod.com/t/what-does-lock-really-reads/21816/2):
>
> 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. 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 mat…

---

_[View the full topic](https://qa.fmod.com/t/get-raw-pcm-data/14933)._
