0
0

Are there any known issues with implementing custom file callbacks on CE?

I am using the following code:

[code:23y46v8u] // set file callbacks
FSOUND_File_SetCallbacks(myopen, myclose, myread, myseek, mytell);

// initialise
if (!FSOUND_Init(44100, 32, 0))
{
    printf("Error!\n");
    printf("%s\n", FMOD_ErrorString(FSOUND_GetError()));
    FSOUND_Close();
    return 1;
}
FSOUND_Stream_SetBufferSize(1000);

// open
stream = FSOUND_Stream_Open(MP3, FSOUND_NORMAL, 0, 0);
if (!stream)
{
    printf("Error!\n");
    printf("%s\n", FMOD_ErrorString(FSOUND_GetError()));
    FSOUND_Close();

    return 1;
}

// play
channel = FSOUND_Stream_PlayEx(FSOUND_FREE, stream, NULL, TRUE);
FSOUND_SetPaused(channel, FALSE);[/code:23y46v8u]

which i’ve basically lifted from one of the windows samples (which itself works like a charm). The callback routines are also lifted directly from that sample.

No matter what I do FMOD ignores the custom file callback routines, and uses it’s defaults.

Any ideas?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.