[Openal] xfi issues
Xavier Bouchoux
xavier at nadeo.com
Tue Aug 28 04:29:08 PDT 2007
hello,
so far I've been developping my code using the creative openal software
implementation.
today I tried to give it a go on the X-fi fatality.
I'm observing this rather odd behaviour:
I create a single source, a single buffer, and link them together.
then I execute this code:
ALint State;
ALint CurBuffer;
alGetSourcei(Source, AL_BUFFER, &CurBuffer); // --> 1
alGetSourcei(Source, AL_SOURCE_STATE, &State);
alGetSourcei(Source, AL_BUFFER, &CurBuffer); // --> 1
alSourcePlay(Source);
... the sound finishes to play ... (actually I'm stepping in the debugger)
alGetSourcei(Source, AL_BUFFER, &CurBuffer); // --> 1
alGetSourcei(Source, AL_SOURCE_STATE, &State);
alGetSourcei(Source, AL_BUFFER, &CurBuffer); // --> 4096
oups. the buffer for the source has changed to some buffer I've never
created.
Is this excepted? can the buffer be changed at any time?
If so, should I just ignore the buffer I didn't create, or should I
delete it when I delete the source?
And I seem to have related issues with streamming sounds. I'll
investigate a bit further.
Cheers,
xavier.
More information about the Openal
mailing list