mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Fixed loss of audio when switching to PAL.
This commit is contained in:
parent
4c947ad553
commit
8291a63d5f
@ -319,17 +319,19 @@ void Machine::crt_did_end_batch_of_frames(Outputs::CRT::CRT *crt, unsigned int n
|
|||||||
}
|
}
|
||||||
is_ntsc_ ^= true;
|
is_ntsc_ ^= true;
|
||||||
|
|
||||||
|
double clock_rate;
|
||||||
if(is_ntsc_)
|
if(is_ntsc_)
|
||||||
{
|
{
|
||||||
set_clock_rate(NTSC_clock_rate);
|
clock_rate = NTSC_clock_rate;
|
||||||
tia_->set_output_mode(TIA::OutputMode::NTSC);
|
tia_->set_output_mode(TIA::OutputMode::NTSC);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
set_clock_rate(PAL_clock_rate);
|
clock_rate = PAL_clock_rate;
|
||||||
tia_->set_output_mode(TIA::OutputMode::PAL);
|
tia_->set_output_mode(TIA::OutputMode::PAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
speaker_->set_input_rate((float)(get_clock_rate() / 38.0));
|
speaker_->set_input_rate((float)(clock_rate / 38.0));
|
||||||
|
set_clock_rate(clock_rate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user