mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-11 14:30:08 +00:00
Remove an uppity assert
- Manifesting on Mac ... believed to be spurious and more fallout from auto-speed adjustment refactor
This commit is contained in:
parent
2855d15f9b
commit
36b78f657f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user