0
0

Hi,

I was wondering if there’s a way to avoid the auto-scan for the filetype when using createSound to load files (in this case on iPhone). For each .flac file I load for instance, it first looks to see if it’s an fsb, wav, ogg, and aiff before figuring out that it’s a flac. Since I know I’m loading flac files, is there a way to specify that? Cheers,

Andrew

(example output)

FMOD: SystemI::createSoundInternal : 16 codecs found. Scan all until one succeeds
FMOD: CodecTag::openInternal : attempting to open ID3 or ASF tags..
FMOD: Codec::release :
FMOD: Plugin::release : (0x23b520)
FMOD: Plugin::release : done
FMOD: Codec::release : done
FMOD: CodecFSB::openInternal : attempting to open as FSB..
FMOD: CodecFSB::openInternal : Header check failed. Not an FSB
FMOD: Codec::release :
FMOD: CodecFSB::closeInternal :
FMOD: CodecFSB::closeInternal : done
FMOD: Plugin::release : (0x23b520)
FMOD: Plugin::release : done
FMOD: Codec::release : done
FMOD: CodecWav::openInternal : attempting to open as WAV..
FMOD: Codec::release :
FMOD: Plugin::release : (0x23b520)
FMOD: Plugin::release : done
FMOD: Codec::release : done
FMOD: CodecOggVorbis::openInternal : attempting to open as OGG..
FMOD: CodecOggVorbis::openInternal : failed to open as ogg
FMOD: Codec::release :
FMOD: Plugin::release : (0x82c410)
FMOD: Plugin::release : done
FMOD: Codec::release : done
FMOD: CodecAIFF::openInternal : attempting to open as AIFF..
FMOD: Codec::release :
FMOD: Plugin::release : (0x23b520)
FMOD: Plugin::release : done
FMOD: Codec::release : done
FMOD: CodecFLAC::openInternal : attempting to open as FLAC..
FMOD: SystemI::createSoundInternal : Format has 0 subsounds.
FMOD: SystemI::createSoundInternal : Create as FMOD_CREATESAMPLE
FMOD: SystemI::createSoundInternal : creating subsound 0/0
FMOD: SystemI::createSample : mode 00000040 length 352800 samples, lengthbytes 561115
FMOD: SystemI::createSample : subsamples = 1, channels = 2
FMOD: SystemI::createSample : subsample 0. output = 0x22d000
FMOD: SystemI::createSample : mSoftware = 0x22d000
FMOD: OutputSoftware::createSample : lengthpcm 352800, lengthbytes 561115, channels 2, format 2, mode 00000049
FMOD: OutputSoftware::createSample : done
FMOD: SystemI::createSample : done
FMOD: SystemI::createSoundInternal : No name found in file, use filename.
FMOD: SystemI::createSoundInternal : done. OpenState now = FMOD_OPENSTATE_READY.

  • You must to post comments
0
0

[code:2fop1lds]
FMOD_CREATESOUNDEXINFO exInfo;

//Defaults are zero, so make sure its all cleared
appMemset(&exInfo, 0, sizeof(FMOD_CREATESOUNDEXINFO));

//Set size of structure
exInfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exInfo.length = sampleSize;
exInfo.suggestedsoundtype = FMOD_SOUND_TYPE_MPEG;

result = AudioDevice->FMODsystem->createSound((const char *)rawData, mode, &exInfo, &sound);[/code:2fop1lds]

That should give you an idea.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.