mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-10 13:29:56 +00:00
Full-speed: fix for occasional speaker clicks
This commit is contained in:
parent
a8671f7a6a
commit
cca3ecd436
@ -399,7 +399,9 @@ BYTE __stdcall SpkrToggle (WORD, WORD, BYTE, BYTE, ULONG nExecutedCycles)
|
|||||||
if (g_bQuieterSpeaker) // quieten the speaker if 8 bit DAC in use
|
if (g_bQuieterSpeaker) // quieten the speaker if 8 bit DAC in use
|
||||||
speakerDriveLevel /= 4; // NB. Don't shift -ve number right: undefined behaviour (MSDN says: implementation-dependent)
|
speakerDriveLevel /= 4; // NB. Don't shift -ve number right: undefined behaviour (MSDN says: implementation-dependent)
|
||||||
|
|
||||||
ResetDCFilter();
|
// When full-speed: Don't ResetDCFilter(), otherwise get occasional clicks when speaker toggled
|
||||||
|
if (!g_bFullSpeed)
|
||||||
|
ResetDCFilter();
|
||||||
|
|
||||||
if (g_nSpeakerData == speakerDriveLevel)
|
if (g_nSpeakerData == speakerDriveLevel)
|
||||||
g_nSpeakerData = ~speakerDriveLevel;
|
g_nSpeakerData = ~speakerDriveLevel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user