Polyphase Game Engine
Loading...
Searching...
No Matches
SoundWave_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5
6#include "Assets/SoundWave.h"
7
10
11#if LUA_ENABLED
12
13#define SOUND_WAVE_LUA_NAME "SoundWave"
14#define SOUND_WAVE_LUA_FLAG "cfSoundWave"
15#define CHECK_SOUND_WAVE(L, arg) CheckAssetLuaType<SoundWave>(L, arg, SOUND_WAVE_LUA_NAME, SOUND_WAVE_LUA_FLAG)
16
17struct SoundWave_Lua
18{
19 static int GetVolumeMultiplier(lua_State* L);
20 static int SetVolumeMultiplier(lua_State* L);
21 static int GetPitchMultiplier(lua_State* L);
22 static int SetPitchMultiplier(lua_State* L);
23 static int GetWaveDataSize(lua_State* L);
24 static int GetNumChannels(lua_State* L);
25 static int GetBitsPerSample(lua_State* L);
26 static int GetSampleRate(lua_State* L);
27 static int GetNumSamples(lua_State* L);
28 static int GetByteRate(lua_State* L);
29 static int GetDuration(lua_State* L);
30
31 static void Bind();
32};
33
34#endif