0
0

I’m having a hard time creating a valid .fsb file. When I generate the file, the header file shows up and the .fsb file is there, but I have problems accessing it through code. I keep getting “unknown format” errors. Any ideas on what i’m doing wrong?

void main()
{
FMUSIC_MODULE* bank = 0;
const char* name;
name = “C:\fmodapi363win32\fmodapi363win32\tools\TestWavs.fsb”;

if (!FSOUND_Init(32000, 64, 0))
{
    printf("%s\n", FMOD_ErrorString(FSOUND_GetError()));
    exit(1);
}


bank = FMUSIC_LoadSong(name);
if (!bank)
{
    printf("%s\n", FMOD_ErrorString(FSOUND_GetError()));
    //exit(1);
}

cout<<FMUSIC_GetNumSamples(bank)<<" Samples in Sound Bank"<<endl;




FMUSIC_PlaySong(bank);

}

  • You must to post comments
0
0

Hehe…I was using the wrong dll 😳 Thanks A Bunch!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.