22 #ifndef CRUISE_SOUND_H 23 #define CRUISE_SOUND_H 25 #include "common/config-manager.h" 26 #include "common/serializer.h" 32 class PCSoundFxPlayer;
40 PCSoundDriver *_soundDriver;
41 PCSoundFxPlayer *_player;
46 virtual void loadMusic(
const char *name);
47 virtual void playMusic();
48 virtual void stopMusic();
49 virtual void removeMusic();
50 virtual void fadeOutMusic();
52 virtual void playSound(
const uint8 *data,
int size,
int volume);
53 virtual void stopSound(
int channel);
56 const char *musicName();
57 void stopChannel(
int channel);
58 bool isPlaying()
const;
59 bool songLoaded()
const;
60 bool songPlayed()
const;
62 uint8 numOrders()
const;
63 void setNumOrders(uint8 v);
64 void setPattern(
int offset, uint8 value);
65 bool musicLooping()
const;
66 void musicLoop(
bool v);
67 void startNote(
int channel,
int volume,
int freq);
71 void setVolume(
int volume) { _genVolume = volume; }
72 uint8 getVolume()
const {
return _genVolume; }
Definition: serializer.h:79