From 4a226aa8358108b1a7b861bb0578ba7be84b44b1 Mon Sep 17 00:00:00 2001 From: athrxx Date: Tue, 4 Dec 2018 21:29:52 +0100 Subject: 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 --- audio/softsynth/fmtowns_pc98/towns_pc98_driver.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'audio/softsynth/fmtowns_pc98/towns_pc98_driver.h') 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; }; -- cgit v1.2.3