22 #ifndef SCUMM_PLAYERS_PLAYER_NES_H 23 #define SCUMM_PLAYERS_PLAYER_NES_H 25 #include "common/scummsys.h" 26 #include "scumm/music.h" 27 #include "audio/audiostream.h" 28 #include "audio/mixer.h" 37 static const int MAXVOLUME = 0x7F;
38 static const int NUMSLOTS = 3;
39 static const int NUMCHANS = 4;
49 void setMusicVolume(
int vol)
override;
50 void startSound(
int sound)
override;
51 void stopSound(
int sound)
override;
52 void stopAllSounds()
override;
53 int getSoundStatus(
int sound)
const override;
56 int readBuffer(int16 *buffer,
const int numSamples)
override;
57 bool isStereo()
const override {
return false; }
59 int getRate()
const override {
return _sampleRate; }
66 byte fetchSoundByte(
int nr);
67 void chainCommand(
int chan);
68 void checkSilenceChannels(
int chan);
70 void APU_writeChannel(
int chan,
int offset, byte value);
71 void APU_writeControl(byte value);
72 byte APU_readStatus();
79 int _samples_per_frame;
101 bool isSFXplaying, wasSFXplaying;
bool isStereo() const override
Definition: player_nes.h:57
Definition: player_nes.h:44
Definition: audiostream.h:50
int getRate() const override
Definition: player_nes.h:59
bool endOfData() const override
Definition: player_nes.h:58