mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix range limits for queueable source buffer counts.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user