Remove an uppity assert

- Manifesting on Mac ... believed to be spurious and more fallout from auto-speed adjustment refactor
This commit is contained in:
Aaron Culliney 2015-03-09 18:03:37 -10:00 committed by Aaron Culliney
parent 2855d15f9b
commit 36b78f657f

View File

@ -407,6 +407,8 @@ static int _ALProcessPlayBuffers(ALVoice *voice, ALuint *bytes_queued)
{
ALint processed = 0;
int err = 0;
*bytes_queued = 0;
alGetSourcei(voice->source, AL_BUFFERS_PROCESSED, &processed);
if ((err = alGetError()) != AL_NO_ERROR)
{
@ -458,8 +460,10 @@ static int _ALProcessPlayBuffers(ALVoice *voice, ALuint *bytes_queued)
assert((play_offset >= 0)/* && (play_offset < voice->buffersize)*/);
long q = voice->_queued_total_bytes/* + voice->index*/ - play_offset;
assert(q >= 0);
*bytes_queued = (ALuint)q;
if (q >= 0) {
*bytes_queued = (ALuint)q;
}
return 0;
}