Compare commits

..

4 commits

Author SHA1 Message Date
Christopher Snowhill
cc2641f1f7 WIP: Attempt to actually use the custom icons
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-26 03:34:03 -07:00
Christopher Snowhill
bfd2aee33c Add new status icon resources
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-26 03:34:03 -07:00
Christopher Snowhill
86be50cc02 Icon: Liquid Glass style icon for macOS Tahoe
Still need to adjust the custom dock icon for this.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-26 03:34:03 -07:00
Christopher Snowhill
d751dca10b Apply recommended settings
Except for deployment target, which is staying at 10.13 for now.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-26 03:34:03 -07:00

View file

@ -196,28 +196,18 @@
} }
- (void)seekToTime:(double)time { - (void)seekToTime:(double)time {
[output fadeOutBackground];
[output setVolume:volume];
[output seek:time];
[bufferChain seek:time];
CogStatus status = (CogStatus)currentPlaybackStatus; CogStatus status = (CogStatus)currentPlaybackStatus;
BOOL paused = status == CogStatusPaused; NSURL *url;
id userInfo; id userInfo;
NSDictionary *rgi;
@synchronized(chainQueue) { @synchronized(chainQueue) {
url = [bufferChain streamURL];
userInfo = [bufferChain userInfo]; userInfo = [bufferChain userInfo];
rgi = [bufferChain rgInfo];
} }
if(paused) { [self play:url withUserInfo:userInfo withRGInfo:rgi startPaused:(status == CogStatusPaused) andSeekTo:time andResumeInterval:YES];
[self setPlaybackStatus:CogStatusPaused waitUntilDone:YES];
if(time > 0.0) {
[self updatePosition:userInfo];
}
} else {
[output fadeIn];
}
} }
- (void)setVolume:(double)v { - (void)setVolume:(double)v {
@ -704,7 +694,7 @@
while(atomic_load_explicit(&refCount, memory_order_relaxed) != 0) { while(atomic_load_explicit(&refCount, memory_order_relaxed) != 0) {
[semaphore signal]; // Gotta poke this periodically [semaphore signal]; // Gotta poke this periodically
if(mainThread) if(mainThread)
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]]; [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.001]];
else else
usleep(500); usleep(500);
} }