Skip to content

Commit ee5cfb7

Browse files
committed
Added a FIXME.
1 parent e2625e5 commit ee5cfb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mojoal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3688,6 +3688,7 @@ static void _alGetSourceiv(const ALuint name, const ALenum param, ALint *values)
36883688
case AL_SOURCE_STATE: *values = (ALint) SDL_AtomicGet(&src->state); break;
36893689
case AL_SOURCE_TYPE: *values = (ALint) src->type; break;
36903690
case AL_BUFFER: *values = (ALint) (src->buffer ? src->buffer->name : 0); break;
3691+
// !!! FIXME: AL_BUFFERS_QUEUED is the total number of buffers pending, playing, and processed, so this is wrong. It might also have to be 1 if there's a static buffer, but I'm not sure.
36913692
case AL_BUFFERS_QUEUED: *values = (ALint) SDL_AtomicGet(&src->buffer_queue.num_items); break;
36923693
case AL_BUFFERS_PROCESSED: *values = (ALint) SDL_AtomicGet(&src->buffer_queue_processed.num_items); break;
36933694
case AL_SOURCE_RELATIVE: *values = (ALint) src->source_relative; break;

0 commit comments

Comments
 (0)