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