Equalizer: Remove equalizer from window, thus saving settings, on stop or shutdown

Fixes #204
CQTexperiment
Christopher Snowhill 2022-01-23 20:25:42 -08:00
parent 51caf3f4e3
commit fe4e17a4a0
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ NSString *CogPlaybackDidStopNotficiation = @"CogPlaybackDidStopNotficiation";
{ {
[[NSUserDefaults standardUserDefaults] setInteger:CogStatusStopped forKey:@"lastPlaybackStatus"]; [[NSUserDefaults standardUserDefaults] setInteger:CogStatusStopped forKey:@"lastPlaybackStatus"];
[self audioPlayer:audioPlayer removeEqualizer:_eq];
[audioPlayer stop]; [audioPlayer stop];
[self sendMetaData]; [self sendMetaData];