Shutdown the NTP Player when the application exits

This commit is contained in:
dwsJason 2019-10-16 21:05:05 -04:00
parent d2951e11fb
commit 2148d93ab6
2 changed files with 9 additions and 2 deletions

View File

@ -90,7 +90,7 @@ syssnd_init(void)
printf("Decompress samerica\n");
LZ4_Unpack(pNtpSong, &samerica_lz4);
printf("SetAudioBank\n");
printf("NTPSetAudioBank\n");
SetAudioBank( (*handle)>>16 );
#if 0
@ -115,7 +115,12 @@ syssnd_init(void)
void
syssnd_shutdown(void)
{
printf("syssnd_shutdown\n");
// If the driver has been loaded
if (pNtpDriver)
{
printf("syssnd_shutdown\n");
NTPstop();
}
//if (!isAudioActive) return;
//isAudioActive = FALSE;
}

View File

@ -322,6 +322,8 @@ void IIGShutdown()
EMShutDown();
MTShutDown();
syssnd_shutdown(); // Shutdown the NTP player
DisposeAll(userid());
//SystemMMShutDown();