I have some sound data and want to create it from memory, whenever i try to though i just get “audio or format not supported”.
exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.length = size;
exinfo.format = FMOD_SOUND_FORMAT_IMAADPCM;
exinfo.numchannels = 1;
exinfo.defaultfrequency = 44100;
exinfo.suggestedsoundtype = FMOD_SOUND_TYPE_UNKNOWN;
result = system->createSound(buffer, FMOD_OPENMEMORY | FMOD_OPENUSER | FMOD_LOOP_OFF, &exinfo, &sound1);
It doesnt give an error when using a PCM format though, is that the only format that is allowed to be created from raw data ?