22 #ifndef SCUMM_PLAYERS_PLAYER_NES_H 23 #define SCUMM_PLAYERS_PLAYER_NES_H 25 #include "common/scummsys.h" 26 #include "common/array.h" 27 #include "scumm/music.h" 28 #include "audio/audiostream.h" 29 #include "audio/mixer.h" 38 static const int MAXVOLUME = 0x7F;
39 static const int NUMSLOTS = 3;
40 static const int NUMCHANS = 4;
50 void setMusicVolume(
int vol)
override;
51 void startSound(
int sound)
override;
52 void stopSound(
int sound)
override;
53 void stopAllSounds()
override;
54 int getSoundStatus(
int sound)
const override;
56 void startTitleTwinkleGroup(
const byte twinkleSteps4x6[4][6]);
59 int readBuffer(int16 *buffer,
const int numSamples)
override;
60 bool isStereo()
const override {
return false; }
62 int getRate()
const override {
return _sampleRate; }
69 void chainCommand(
int chan);
70 void checkSilenceChannels(
int chan);
72 void APU_writeChannel(
int chan,
int offset, byte value);
73 void APU_writeControl(byte value);
74 byte APU_readStatus();
81 int _samples_per_frame;
94 bool _title2SfxActive;
106 bool isSFXplaying, wasSFXplaying;
bool isStereo() const override
Definition: player_nes.h:60
Definition: player_nes.h:45
Definition: audiostream.h:50
int getRate() const override
Definition: player_nes.h:62
bool endOfData() const override
Definition: player_nes.h:61