Speaker fade: use proper type

This commit is contained in:
tomcw 2023-01-03 21:46:51 +00:00
parent 4377441c26
commit 0532edf773
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ enum AppMode_e
, MODE_DEBUG // 6502 is paused
, MODE_STEPPING // 6502 is running at normal/full speed (Debugger breakpoints always active)
, MODE_BENCHMARK
, MODE_UNDEFINED // Used in SoundCore_SetFade()
};
#define SPEED_MIN 0

View File

@ -438,7 +438,7 @@ static VOID CALLBACK SoundCore_TimerFunc(HWND hwnd, UINT uMsg, UINT_PTR idEvent,
void SoundCore_SetFade(eFADE FadeType)
{
static int nLastMode = -1;
static AppMode_e nLastMode = MODE_UNDEFINED;
if(g_nAppMode == MODE_DEBUG)
return;