Skip to content

Commit

Permalink
Added a FIXME.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 19, 2019
1 parent e2625e5 commit ee5cfb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoal.c
Expand Up @@ -3688,6 +3688,7 @@ static void _alGetSourceiv(const ALuint name, const ALenum param, ALint *values)
case AL_SOURCE_STATE: *values = (ALint) SDL_AtomicGet(&src->state); break;
case AL_SOURCE_TYPE: *values = (ALint) src->type; break;
case AL_BUFFER: *values = (ALint) (src->buffer ? src->buffer->name : 0); break;
// !!! 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.
case AL_BUFFERS_QUEUED: *values = (ALint) SDL_AtomicGet(&src->buffer_queue.num_items); break;
case AL_BUFFERS_PROCESSED: *values = (ALint) SDL_AtomicGet(&src->buffer_queue_processed.num_items); break;
case AL_SOURCE_RELATIVE: *values = (ALint) src->source_relative; break;
Expand Down

0 comments on commit ee5cfb7

Please sign in to comment.