22 #ifndef SCUMM_PLAYERS_PLAYER_MAC_H 23 #define SCUMM_PLAYERS_PLAYER_MAC_H 25 #include "common/scummsys.h" 26 #include "common/util.h" 27 #include "common/mutex.h" 28 #include "scumm/music.h" 29 #include "audio/audiostream.h" 30 #include "audio/mixer.h" 32 #define RES_SND MKTAG('s', 'n', 'd', ' ') 59 int readBuffer(int16 *buffer,
const int numSamples)
override;
60 bool isStereo()
const override {
return false; }
62 int getRate()
const override {
return _sampleRate; }
73 void stopAllSounds_Internal();
91 void generateSamples(int16 *data,
int pitchModifier,
int volume,
int numSamples,
int remainingSamplesOnNote,
bool fadeNoteEnds);
96 int _numberOfChannels;
100 virtual bool loadMusic(
const byte *ptr) {
return false; }
101 virtual bool getNextNote(
int ch, uint32 &samples,
int &pitchModifier, byte &velocity) {
return false; }
107 Instrument _instrument;
127 uint32 _lastVersionBeforeSaveFormatChange;
129 uint32 durationToSamples(uint16 duration);
130 int noteToPitchModifier(byte note, Instrument *instrument);
131 void overrideChannelMask(
int newMask);
void stopSound(int sound) override
Definition: player_mac.h:43
void setMusicVolume(int vol) override
int getRate() const override
Definition: player_mac.h:62
Definition: serializer.h:79
int getMusicTimer() override
void stopAllSounds() override
int readBuffer(int16 *buffer, const int numSamples) override
Definition: audiostream.h:50
void startSound(int sound) override
Definition: player_mac.h:104
bool isStereo() const override
Definition: player_mac.h:60
void saveLoadWithSerializer(Common::Serializer &ser) override
bool endOfData() const override
Definition: player_mac.h:61
int getSoundStatus(int sound) const override