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"
38static const int MAXVOLUME = 0x7F;
39static const int NUMSLOTS = 3;
40static const int NUMCHANS = 4;
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;
Definition: audiostream.h:50
Definition: player_nes.h:45
bool endOfData() const override
Definition: player_nes.h:61
int getRate() const override
Definition: player_nes.h:62
void startSound(int sound) override
void stopAllSounds() override
void setMusicVolume(int vol) override
bool isStereo() const override
Definition: player_nes.h:60
int getSoundStatus(int sound) const override
int readBuffer(int16 *buffer, const int numSamples) override
void stopSound(int sound) override