CLuaInstance: Add multiple script functions for mute icon & volume

- Functions: enableMuteIcon, isMuted, AudioMute, setVolume, getVolume
 - This allows to save volume/mute status at plugin start
 and restore it on exit.

 - Set Lua api version to 1.35


Origin commit data
------------------
Commit: 6f939800b6
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-22 (Tue, 22 Dec 2015)

Origin message was:
------------------
CLuaInstance: Add multiple script functions for mute icon & volume

 - Functions: enableMuteIcon, isMuted, AudioMute, setVolume, getVolume
 - This allows to save volume/mute status at plugin start
  and restore it on exit.

 - Set Lua api version to 1.35
This commit is contained in:
Michael Liebmann
2015-12-22 11:11:09 +01:00
parent 8767e078f2
commit 231bdc4579
3 changed files with 66 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ extern "C" {
#include "luainstance_helpers.h"
#define LUA_API_VERSION_MAJOR 1
#define LUA_API_VERSION_MINOR 34
#define LUA_API_VERSION_MINOR 35
void LuaInstRegisterFunctions(lua_State *L, bool fromThreads=false);