22 #ifndef SCUMM_PLAYERS_PLAYER_PCE_H 23 #define SCUMM_PLAYERS_PLAYER_PCE_H 25 #include "common/scummsys.h" 26 #include "common/mutex.h" 27 #include "scumm/music.h" 28 #include "audio/audiostream.h" 29 #include "audio/mixer.h" 54 int16 soundUpdateCounter;
62 uint16 controlVecShort02;
63 uint16 controlVecShort03;
64 int16 controlVecShort06;
66 uint16 controlVecShort09;
67 uint16 controlVecShort10;
69 const byte* soundDataPtr;
70 const byte* controlBufferPos;
75 ~Player_PCE()
override;
77 void setMusicVolume(
int vol)
override { _maxvol = vol; }
78 void startSound(
int sound)
override;
79 void stopSound(
int sound)
override;
80 void stopAllSounds()
override;
81 int getSoundStatus(
int sound)
const override;
82 int getMusicTimer()
override;
85 int readBuffer(int16 *buffer,
const int numSamples)
override;
86 bool isStereo()
const override {
return true; }
87 bool endOfData()
const override {
return false; }
88 int getRate()
const override {
return _sampleRate; }
99 channel_t channels[12];
103 int _samplesPerPeriod;
104 int16* _sampleBuffer;
105 int _sampleBufferCnt;
107 void PSG_Write(
int reg, byte data);
109 void setupWaveform(byte bank);
110 void procA541(channel_t *channel);
112 void procA731(channel_t *channel);
113 void processSoundData(channel_t *channel);
114 void procAA62(channel_t *channel,
int a);
115 void procAB7F(channel_t *channel);
116 void procAC24(channel_t *channel);
117 void procACEA(channel_t *channel,
int a);
122 #endif // USE_RGB_COLOR
Definition: audiostream.h:50