AUDIO: (FM-TOWNS) - whitespace

This commit is contained in:
athrxx 2020-09-08 23:02:02 +02:00
parent 85755c893a
commit 38ddb196b3
5 changed files with 14 additions and 14 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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