Displaying 1 result from an estimated 1 matches for "al_no_error".
2006 Jan 17
1
How to loop a Vobis sound ?
..., ALvoid *data, ALsizei size, ALsizei freq)
{
// Copy PCM data into ALBuffer
// all variables id, eFomat and size, freq are correct.
alBufferData (id, eFormat, data, size, freq);
ALErrorCheck ();
}
void Buffer::ALErrorCheck ()
{
int error = alGetError ();
if (error != AL_NO_ERROR)
{
char szErr[512];
MakeErrorString (szErr, "", error);
throw string (szErr);
-------------> error here
}
}
I also tried the ov_XXX_lap functions, but the problem still remains.
thank you.
Steve
// ---------- Full source code -----------------
// --...