File: sound.pkg

package info (click to toggle)
boswars 2.7%2Bsvn160110-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 97,132 kB
  • sloc: cpp: 57,441; python: 1,759; makefile: 34; sh: 26
file content (24 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (7)
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();