0
0

[code:2nyw9db7]
...

FMOD_RESULT result;
FMOD::Sound* fsb = NULL;
printf("Load filename: %s\n", filename);
result = FMOD_system->createStream(filename, FMOD_DEFAULT, 0, &fsb);
PrintBank( fsb );

...

void PrintBank(FMOD::Sound* fsb) {
if( fsb ) {
FMOD_RESULT result;
char name[256];
result = fsb->getName( name, 256 );
printf("Bank: %s\n", name);
int numSounds = 0;
result = fsb->getNumSubSounds( &numSounds );
for( int i = 0; i < numSounds; ++i ) {
FMOD::Sound* sound = NULL;
result = fsb->getSubSound( i, &sound );
if( sound ) {
result = sound->getName( name, 256 );
printf("+–> %s\n", name);
}
}
}
}
[/code:2nyw9db7]

Using this code, and a bank (FSB) with two music files in it, when I print out the name of the FSB, it actually prints the name of the first file in the FSB. When I create the FSB as non-streamed with createSound, it does not have this problem.

Any help?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.