Polyphase Game Engine
Loading...
Searching...
No Matches
Audio_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "AudioManager.h"
4#include "EngineTypes.h"
5
6#if LUA_ENABLED
7
8#define AUDIO_LUA_NAME "Audio"
9
10struct Audio_Lua
11{
12 static int PlaySound2D(lua_State* L);
13 static int PlaySound3D(lua_State* L);
14 static int StopSounds(lua_State* L);
15 static int UpdateSound(lua_State* L);
16 static int StopAllSounds(lua_State* L);
17 static int IsSoundPlaying(lua_State* L);
18
19 static int SetAudioClassVolume(lua_State* L);
20 static int GetAudioClassVolume(lua_State* L);
21 static int SetAudioClassPitch(lua_State* L);
22 static int GetAudioClassPitch(lua_State* L);
23
24 static int SetMasterVolume(lua_State* L);
25 static int GetMasterVolume(lua_State* L);
26 static int SetMasterPitch(lua_State* L);
27 static int GetMasterPitch(lua_State* L);
28
29 static void Bind();
30};
31
32#endif