Answered
0
0

If I have the time-amplitude waveform of a sound, which I understand is just PCM data, can FMOD transform this into a sound object for playback?

Thanks.

  • You must to post comments
Best Answer
0
0

Yes it can. You can pass a pointer to your PCM data instead of a string filename.

You’ll need some extra code along the lines of

FMOD_CREATESOUNDEXINFO soundinfo = {};
soundinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
// fill out frequency, channel count, PCM format, length in soundinfo
FMOD::Sound* sound;
system->createSound(pointerToPcmData, FMOD_OPENMEMORY_POINT | FMOD_OPENRAW, &soundinfo, &sound);
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.