mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Renamed Decoder:getBits to Decoder:getBitDepth (see issue #636)
This commit is contained in:
@@ -38,12 +38,12 @@ int w_newSoundData(lua_State *L)
|
||||
{
|
||||
int samples = luaL_checkint(L, 1);
|
||||
int sampleRate = luaL_optint(L, 2, Decoder::DEFAULT_SAMPLE_RATE);
|
||||
int bits = luaL_optint(L, 3, Decoder::DEFAULT_BITS);
|
||||
int bitDepth = luaL_optint(L, 3, Decoder::DEFAULT_BIT_DEPTH);
|
||||
int channels = luaL_optint(L, 4, Decoder::DEFAULT_CHANNELS);
|
||||
|
||||
try
|
||||
{
|
||||
t = instance->newSoundData(samples, sampleRate, bits, channels);
|
||||
t = instance->newSoundData(samples, sampleRate, bitDepth, channels);
|
||||
}
|
||||
catch(love::Exception &e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user