22 #ifndef SCUMM_PLAYERS_PLAYER_V2_H 23 #define SCUMM_PLAYERS_PLAYER_V2_H 25 #include "scumm/players/player_v2base.h" 26 #include "audio/audiostream.h" 27 #include "audio/mixer.h" 50 int readBuffer(int16 *buffer,
const int numSamples)
override;
51 bool isStereo()
const override {
return true; }
53 int getRate()
const override {
return _sampleRate; }
60 unsigned int _update_step;
64 unsigned int _volumetable[16];
71 const uint32 _sampleRate;
79 virtual void generateSpkSamples(int16 *data, uint len);
80 virtual void generatePCjrSamples(int16 *data, uint len);
82 void lowPassFilter(int16 *data, uint len);
83 void squareGenerator(
int channel,
int freq,
int vol,
84 int noiseFeedback, int16 *sample, uint len);
int getSoundStatus(int sound) const override
bool endOfData() const override
Definition: player_v2.h:52
int getRate() const override
Definition: player_v2.h:53
void stopSound(int sound) override
Definition: player_v2base.h:66
Definition: player_v2.h:36
void startSound(int sound) override
Definition: audiostream.h:50
bool isStereo() const override
Definition: player_v2.h:51
int readBuffer(int16 *buffer, const int numSamples) override
void stopAllSounds() override
void setMusicVolume(int vol) override