mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Renamed Decoder:getBits to Decoder:getBitDepth (see issue #636)
This commit is contained in:
@@ -37,10 +37,10 @@ int w_Decoder_getChannels(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_Decoder_getBits(lua_State *L)
|
||||
int w_Decoder_getBitDepth(lua_State *L)
|
||||
{
|
||||
Decoder *t = luax_checkdecoder(L, 1);
|
||||
lua_pushinteger(L, t->getBits());
|
||||
lua_pushinteger(L, t->getBitDepth());
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ int w_Decoder_getSampleRate(lua_State *L)
|
||||
static const luaL_Reg functions[] =
|
||||
{
|
||||
{ "getChannels", w_Decoder_getChannels },
|
||||
{ "getBits", w_Decoder_getBits },
|
||||
{ "getBitDepth", w_Decoder_getBitDepth },
|
||||
{ "getSampleRate", w_Decoder_getSampleRate },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user