| 1 |
extern int GetEffectsVolume(void); |
| 2 |
extern void SetEffectsVolume(int volume); |
| 3 |
extern int GetMusicVolume(void); |
| 4 |
extern void SetMusicVolume(int volume); |
| 5 |
|
| 6 |
extern void SetEffectsEnabled(bool enabled); |
| 7 |
extern bool IsEffectsEnabled(void); |
| 8 |
extern void SetMusicEnabled(bool enabled); |
| 9 |
extern bool IsMusicEnabled(void); |
| 10 |
|
| 11 |
extern int PlayFile(const std::string name, LuaActionListener *listener = NULL); |
| 12 |
$[ |
| 13 |
function PlaySoundFile(file, callback) |
| 14 |
return PlayFile(file, LuaActionListener:new(callback)) |
| 15 |
end |
| 16 |
$] |
| 17 |
|
| 18 |
extern int PlayMusic(const std::string name); |
| 19 |
extern void StopMusic(void); |
| 20 |
|
| 21 |
extern int SetChannelVolume(int channel, int volume); |
| 22 |
extern int SetChannelStereo(int channel, int stereo); |
| 23 |
extern void StopChannel(int channel); |
| 24 |
extern void StopAllChannels(); |