Hello again,
I have read through the forum and found a couple people asking about playing AAC with fmodiphone and that it is possible becuase of the hardware decoding on the iphone. I have tried to do so with no success. Without setting the exinfo i get:

[code:2ygzmt13]FMOD: System::createSoundInternal : Fatal error (20) scanning the codecs. (ie not FMOD_ERR_FORMAT or FMOD_ERR_FILE_EOF)[/code:2ygzmt13]
I am not sure what to set for the exinfo, but from what i have found I was trying this:

memset(&exinfo, 0, sizeof(FMOD_CREATESOUNDEXINFO));

exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.numchannels = 1;
exinfo.format = FMOD_SOUND_FORMAT_PCM24;
exinfo.defaultfrequency = 24000;
exinfo.suggestedsoundtype = FMOD_SOUND_TYPE_AUDIOQUEUE;

[@"http://www.miclients.com/robinsegg/recordings/default.aac" getCString:buffer maxLength:200 encoding:NSASCIIStringEncoding];
result = system->createSound(buffer, FMOD_SOFTWARE, &exinfo, &soundPlayback);

Am i missing something obvious? Does this have something to do with "extracodecdata" no being set? Thanks in advance!

  • You must to post comments

Simplify your test a bit, try without the exinfo struct and netstream, just download the aac and createStream it.
If that works, then try netstreaming the aac. If that works, then try suggestedsoundtype, you shouldn’t need the other exinfo settings (other than cbsize).

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.