Fixed compilation warnings
This commit is contained in:
parent
3e6f10757c
commit
40606f924a
3 changed files with 3 additions and 4 deletions
|
@ -49,12 +49,12 @@ protected:
|
|||
Stream(exRegs);
|
||||
}
|
||||
|
||||
void UpdatePrgMapping()
|
||||
void UpdatePrgMapping() override
|
||||
{
|
||||
SelectPrgPage4x(0, _exRegs[5] << 2);
|
||||
}
|
||||
|
||||
uint8_t ReadRegister(uint16_t addr)
|
||||
uint8_t ReadRegister(uint16_t addr) override
|
||||
{
|
||||
return _exRegs[addr & 0x03];
|
||||
}
|
||||
|
|
|
@ -98,7 +98,6 @@ protected:
|
|||
if((_mode & 0x03) == 1) {
|
||||
switch(_a12Watcher.UpdateVramAddress(addr)) {
|
||||
case A12StateChange::Rise:
|
||||
uint32_t count = _irqCounter;
|
||||
if(_irqCounter == 0 || _irqReload) {
|
||||
_irqCounter = _irqReloadValue;
|
||||
} else {
|
||||
|
|
|
@ -204,7 +204,7 @@ void SoundMixer::UpdateRates(bool forceUpdate)
|
|||
AudioStatistics stats = GetStatistics();
|
||||
int32_t requestedLatency = (int32_t)EmulationSettings::GetAudioLatency();
|
||||
double targetRate = _sampleRate;
|
||||
if(stats.AverageLatency > 0 && EmulationSettings::GetEmulationSpeed(100)) {
|
||||
if(stats.AverageLatency > 0 && EmulationSettings::GetEmulationSpeed() == 100) {
|
||||
if(stats.AverageLatency > requestedLatency + 2) {
|
||||
targetRate *= 1.005;
|
||||
} else if(stats.AverageLatency < requestedLatency - 2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue