mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Rename love.audio.setMixMode to setMixWithSystem. Fix some copyright notice typos.
--HG-- branch : minor
This commit is contained in:
@@ -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 }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user