aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/fmtowns_pc98/towns_pc98_driver.h
diff options
context:
space:
mode:
authorathrxx2018-12-04 21:29:52 +0100
committerathrxx2019-03-07 19:43:55 +0100
commit4a226aa8358108b1a7b861bb0578ba7be84b44b1 (patch)
tree4d4067bcde1627f8f82699400fec06c144af3201 /audio/softsynth/fmtowns_pc98/towns_pc98_driver.h
parent20b378a41a194bd0869bfc2bb16b9a6897bd8bd2 (diff)
downloadscummvm-rg350-4a226aa8358108b1a7b861bb0578ba7be84b44b1.tar.gz
scummvm-rg350-4a226aa8358108b1a7b861bb0578ba7be84b44b1.tar.bz2
scummvm-rg350-4a226aa8358108b1a7b861bb0578ba7be84b44b1.zip
AUDIO: (FM-TOWNS/PC-98) - more cleanup
sort and rename some methods and vars and move as much as possible from public to private section
Diffstat (limited to 'audio/softsynth/fmtowns_pc98/towns_pc98_driver.h')
-rw-r--r--audio/softsynth/fmtowns_pc98/towns_pc98_driver.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_driver.h b/audio/softsynth/fmtowns_pc98/towns_pc98_driver.h
index 0b9edcfd58..448bb2a8e1 100644
--- a/audio/softsynth/fmtowns_pc98/towns_pc98_driver.h
+++ b/audio/softsynth/fmtowns_pc98/towns_pc98_driver.h
@@ -53,13 +53,14 @@ public:
void pause();
void cont();
- bool looping();
- bool musicPlaying();
+ bool looping() const;
+ bool musicPlaying() const;
void setMusicVolume(int volume);
void setSoundEffectVolume(int volume);
private:
+ uint8 readReg(uint8 part, uint8 reg);
void writeReg(uint8 part, uint8 reg, uint8 val);
void preventRegisterWrite(bool prevent);
@@ -78,17 +79,9 @@ private:
TownsPC98_MusicChannelPCM *_rhythmChannel;
#endif
- const uint8 *_opnCarrier;
- const uint8 *_opnFreqTable;
- const uint8 *_opnFreqTableSSG;
- const uint8 *_opnFxCmdLen;
- const uint8 *_opnLvlPresets;
-
uint8 *_musicBuffer;
uint8 *_sfxBuffer;
- uint8 *_trackPtr;
- uint8 *_patches;
- uint8 *_ssgPatches;
+ const uint8 *_patchData;
uint8 _updateChannelsFlag;
uint8 _updateSSGFlag;
@@ -109,14 +102,19 @@ private:
uint8 *_sfxData;
uint16 _sfxOffsets[2];
+ uint8 *_trackPtr;
bool _regWriteProtect;
+
PC98AudioCore *_pc98a;
const int _numChanFM;
const int _numChanSSG;
const int _numChanRHY;
- static const uint8 _drvTables[];
+ static const uint8 _channelPreset[36];
+ static const uint8 _levelPresetFMTOWNS[24];
+ static const uint8 _levelPresetPC98[24];
+ const uint8 *_levelPresets;
bool _ready;
};