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

@ -130,6 +130,8 @@ NSString *CogPlaybackDidStopNotficiation = @"CogPlaybackDidStopNotficiation";
- (IBAction)stop:(id)sender
{
[[NSUserDefaults standardUserDefaults] setInteger:CogStatusStopped forKey:@"lastPlaybackStatus"];
[self audioPlayer:audioPlayer removeEqualizer:_eq];
[audioPlayer stop];