Rename love.audio.setMixMode to setMixWithSystem. Fix some copyright notice typos.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-07-29 23:22:54 -03:00
parent 17cf7bba83
commit 02aa7937a1
12 changed files with 39 additions and 25 deletions
+4 -12
View File
@@ -25,9 +25,6 @@
#include "null/Audio.h"
#include "common/runtime.h"
#ifdef LOVE_IOS
#include "common/ios.h"
#endif
// C++
#include <iostream>
@@ -521,15 +518,10 @@ int w_isEffectsSupported(lua_State *L)
return 1;
}
#ifdef LOVE_IOS
int w_setMixMode(lua_State *L)
int w_setMixWithSystem(lua_State *L)
{
love::ios::setAudioMixWithOthers(lua_toboolean(L, 1));
#else
int w_setMixMode(lua_State *)
{
#endif
return 0;
luax_pushboolean(L, instance()->setMixWithSystem(luax_toboolean(L, 1)));
return 1;
}
// List of functions to wrap.
@@ -562,7 +554,7 @@ static const luaL_Reg functions[] =
{ "getMaxSceneEffects", w_getMaxSceneEffects },
{ "getMaxSourceEffects", w_getMaxSourceEffects },
{ "isEffectsSupported", w_isEffectsSupported },
{ "setMixMode", w_setMixMode },
{ "setMixWithSystem", w_setMixWithSystem },
{ 0, 0 }
};