From 38ddb196b31b8d735eb8e6ff0f654d6f29bc503c Mon Sep 17 00:00:00 2001 From: athrxx Date: Tue, 8 Sep 2020 23:02:02 +0200 Subject: [PATCH] AUDIO: (FM-TOWNS) - whitespace --- audio/softsynth/fmtowns_pc98/pc98_audio.cpp | 6 +++--- audio/softsynth/fmtowns_pc98/towns_audio.cpp | 2 +- audio/softsynth/fmtowns_pc98/towns_pc98_driver.cpp | 6 +++--- audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp | 12 ++++++------ audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/audio/softsynth/fmtowns_pc98/pc98_audio.cpp b/audio/softsynth/fmtowns_pc98/pc98_audio.cpp index edf9353485e..85e072eaaf3 100644 --- a/audio/softsynth/fmtowns_pc98/pc98_audio.cpp +++ b/audio/softsynth/fmtowns_pc98/pc98_audio.cpp @@ -86,7 +86,7 @@ PC98AudioCoreInternal::~PC98AudioCoreInternal() { _ready = false; /* - + */ } @@ -125,10 +125,10 @@ bool PC98AudioCoreInternal::init() { return false; reset(); - + writeReg(0, 0x26, 0xDD); writeReg(0, 0x25, 0x01); - writeReg(0, 0x24, 0x00); + writeReg(0, 0x24, 0x00); writeReg(0, 0x27, 0x30); setVolumeChannelMasks(-1, 0); diff --git a/audio/softsynth/fmtowns_pc98/towns_audio.cpp b/audio/softsynth/fmtowns_pc98/towns_audio.cpp index a7dd4b340a3..d197adef945 100644 --- a/audio/softsynth/fmtowns_pc98/towns_audio.cpp +++ b/audio/softsynth/fmtowns_pc98/towns_audio.cpp @@ -470,7 +470,7 @@ int TownsAudioInterfaceInternal::processCommand(int command, va_list &args) { if (command < 0 || command > 81) return 4; - + int res = (this->*_intfOpcodes[command])(args); return res; diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_driver.cpp b/audio/softsynth/fmtowns_pc98/towns_pc98_driver.cpp index 4a93d42454e..75e90885e57 100644 --- a/audio/softsynth/fmtowns_pc98/towns_pc98_driver.cpp +++ b/audio/softsynth/fmtowns_pc98/towns_pc98_driver.cpp @@ -45,8 +45,8 @@ public: virtual void loadData(uint8 *data); virtual void processEvents(); virtual void processFrequency(); - - virtual void fadeStep(); + + virtual void fadeStep(); const uint8 _idFlag; @@ -108,7 +108,7 @@ private: int16 _vbrModCurVal; uint8 _vbrDurLeft; uint8 _algorithm; - + const uint8 _keyNum; const uint8 _part; diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp index ad12a4be576..eeabe6d05d5 100644 --- a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp +++ b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp @@ -115,7 +115,7 @@ TownsPC98_FmSynthOperator::TownsPC98_FmSynthOperator(const uint32 tickLength, co void TownsPC98_FmSynthOperator::keyOn() { if (_keyOn) return; - + _keyOn = true; //if (_state == kEnvReady) _phase = 0; @@ -1125,7 +1125,7 @@ int TownsPC98_FmSynth::readBuffer(int16 *buffer, const int numSamples) { return 0; } _mixerThreadLockCounter++; - + // This assumes that the numSamples parameter will be the same on most (if not on all) calls to readBuffer(), // although I don't know whether this is true for all backends. There is no need to reallocate the temp // buffer every time, unless its size needs to be increased. @@ -1142,13 +1142,13 @@ int TownsPC98_FmSynth::readBuffer(int16 *buffer, const int numSamples) { _renderBuffer = new int32[_renderBufferSize]; memset(_renderBuffer, 0, sizeof(int32) * _renderBufferSize); } - + int outSamplesLeft = numSamples >> 1; int inSamplesLeft = (int)(_predSmpCount * outSamplesLeft) + 1; while (_ready && outSamplesLeft) { int render = inSamplesLeft; - + for (int i = 0; i < 2; i++) { if (_timers[i].enabled) { if (!_timers[i].smpTillCb) { @@ -1225,7 +1225,7 @@ int TownsPC98_FmSynth::readBuffer(int16 *buffer, const int numSamples) { int consumed = 0; // Convert rate to the mixer output rate. I don't want to leave that to the mixer, since doing - // it here allows me the best control over the precise invocation of the timer callbacks. + // it here allows me the best control over the precise invocation of the timer callbacks. for (; consumed < render + _numPending && outSamplesLeft; ++consumed) { for (_rateConvCnt -= _outRateMult; _rateConvCnt <= 0 && outSamplesLeft; --outSamplesLeft) { _rateConvCnt += _internalRate; @@ -1259,7 +1259,7 @@ int TownsPC98_FmSynth::getRate() const { void TownsPC98_FmSynth::deinit() { _mixer->stopHandle(_soundHandle); - _ready = false; + _ready = false; _timers[0].cb = _timers[1].cb = _timerProcIdle; } diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h index 8b81cb83070..d0b5349e4c2 100644 --- a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h +++ b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h @@ -40,7 +40,7 @@ #endif /* Experimental code for emulation of the chip's busy flag wait cycle. - * Explanation: + * Explanation: * Before attempting a port write a client application would usually read the chip's * busy flag and remain in a loop until the flag is cleared. This does not work with * an emulator that is on the same thread as the client code (the busy flag will never