Don't pause streams, stop instead

Do not bother to pause streamed files, instead stop playback when pause
is requested.

Fixes #372

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-07-29 00:56:16 -07:00
parent 587ccd6a0d
commit fc2d96831d
No known key found for this signature in database

View file

@ -101,6 +101,10 @@ NSString *CogPlaybackDidStopNotficiation = @"CogPlaybackDidStopNotficiation";
}
- (IBAction)pause:(id)sender {
if(!([playlistController currentEntry].seekable)) {
return [self stop:sender];
}
[[NSUserDefaults standardUserDefaults] setInteger:CogStatusPaused forKey:@"lastPlaybackStatus"];
[audioPlayer pause];