Skip to content

Commit

Permalink
Fix range limits for queueable source buffer counts.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jul 15, 2024
1 parent 906f615 commit d5b9606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/audio/openal/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ Source::Source(Pool *pool, love::sound::Decoder *decoder)
slotlist.push(i);
}

Source::Source(Pool *pool, int sampleRate, int bitDepth, int channels, int buffers)
Source::Source(Pool *pool, int sampleRate, int bitDepth, int channels, int b)
: love::audio::Source(Source::TYPE_QUEUE)
, pool(pool)
, sampleRate(sampleRate)
, channels(channels)
, bitDepth(bitDepth)
, buffers(buffers)
, buffers(b)
{
ALenum fmt = Audio::getFormat(bitDepth, channels);
if (fmt == AL_NONE)
Expand Down

0 comments on commit d5b9606

Please sign in to comment.