mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Rename SoundData:getBits to getBitDepth (resolve #636)
This commit is contained in:
@@ -52,7 +52,7 @@ Source::Source(Pool *pool, love::sound::SoundData *soundData)
|
||||
, toLoop(0)
|
||||
{
|
||||
alGenBuffers(1, buffers);
|
||||
ALenum fmt = getFormat(soundData->getChannels(), soundData->getBits());
|
||||
ALenum fmt = getFormat(soundData->getChannels(), soundData->getBitDepth());
|
||||
alBufferData(buffers[0], fmt, soundData->getData(), soundData->getSize(), soundData->getSampleRate());
|
||||
|
||||
static float z[3] = {0, 0, 0};
|
||||
|
||||
Reference in New Issue
Block a user