From 2148d93ab6035127e2c6e43c48dd805fa8fba679 Mon Sep 17 00:00:00 2001 From: dwsJason Date: Wed, 16 Oct 2019 21:05:05 -0400 Subject: [PATCH] Shutdown the NTP Player when the application exits --- src/syssnd.c | 9 +++++++-- src/sysvid.c | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/syssnd.c b/src/syssnd.c index e22e32c..d300cd2 100644 --- a/src/syssnd.c +++ b/src/syssnd.c @@ -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; } diff --git a/src/sysvid.c b/src/sysvid.c index 21432c1..b277f74 100644 --- a/src/sysvid.c +++ b/src/sysvid.c @@ -322,6 +322,8 @@ void IIGShutdown() EMShutDown(); MTShutDown(); + syssnd_shutdown(); // Shutdown the NTP player + DisposeAll(userid()); //SystemMMShutDown();