[Core/CD] fixes last commit broken PCM clock initialization when VSYNC is enabled

This commit is contained in:
EkeEke 2016-07-15 20:07:23 +02:00
parent 1dac828fb5
commit ff6bd36593
4 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -139,7 +139,7 @@ void audio_set_rate(int samplerate, double framerate)
if (system_hw == SYSTEM_MCD)
{
/* number of SCD master clocks run per second */
mclk = framerate ? (SCYCLES_PER_LINE * (vdp_pal ? 313 : 262) * framerate) : SCD_CLOCK;
mclk = (mclk / system_clock) * SCD_CLOCK;
/* PCM core */
pcm_init(mclk, samplerate);