0
0

Hi,

i have small problem.I have last stable version of FMOD and i tried recording examples.I tested recording and recordtodisk examples, but both of them throw error FMOD_ERR_FORMAT.
Can anyone help me,how correct set sound format for FMOD_System_RecordStart???
In recording example is :
[code:2y52czht]
memset(&exinfo, 0, sizeof(FMOD_CREATESOUNDEXINFO));

exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.numchannels = 1;
exinfo.format = FMOD_SOUND_FORMAT_PCM16;
exinfo.defaultfrequency = 44100;
exinfo.length = exinfo.defaultfrequency * sizeof(short) * exinfo.numchannels * 5;

result = FMOD_System_CreateSound(system, 0, FMOD_2D | FMOD_SOFTWARE | FMOD_OPENUSER, &exinfo, &sound);
[/code:2y52czht]

Thx for any help

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.