Compare commits

..

4 commits

Author SHA1 Message Date
Christopher Snowhill
5aec42d518 WIP: Attempt to actually use the custom icons
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-29 19:57:49 -07:00
Christopher Snowhill
cec0049d93 Add new status icon resources
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-29 19:57:49 -07:00
Christopher Snowhill
cc00ab5125 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-29 19:57:49 -07:00
Christopher Snowhill
648a98833e 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-29 19:57:49 -07:00
2 changed files with 3 additions and 8 deletions

View file

@ -16,7 +16,6 @@
float *visAudio;
int visAudioCursor, visAudioSize;
uint64_t visSamplesPosted;
BOOL ignoreLatency;
}
static VisualizationController *_sharedController = nil;
@ -36,7 +35,6 @@ static VisualizationController *_sharedController = nil;
visAudio = NULL;
visAudioSize = 0;
latency = 0;
ignoreLatency = YES;
}
return self;
}
@ -50,7 +48,6 @@ static VisualizationController *_sharedController = nil;
latency = 0;
visAudioCursor = 0;
visSamplesPosted = 0;
ignoreLatency = YES;
if(visAudio && visAudioSize) {
bzero(visAudio, sizeof(float) * visAudioSize);
}
@ -102,7 +99,7 @@ static VisualizationController *_sharedController = nil;
- (void)postLatency:(double)latency {
self->latency = latency;
ignoreLatency = (latency >= 45.0) || (latency < 0.0);
assert(latency < 45.0);
}
- (double)readSampleRate {
@ -118,7 +115,7 @@ static VisualizationController *_sharedController = nil;
- (void)copyVisPCM:(float *_Nullable)outPCM visFFT:(float *_Nullable)outFFT latencyOffset:(double)latency {
if(!outPCM && !outFFT) return;
if(ignoreLatency || !visAudio || !visAudioSize) {
if(!visAudio || !visAudioSize) {
if(outPCM) bzero(outPCM, sizeof(float) * 4096);
if(outFFT) bzero(outFFT, sizeof(float) * 2048);
return;

View file

@ -374,9 +374,7 @@ static void *playlistControllerContext = &playlistControllerContext;
ldiv_t weeksAndDays;
for(PlaylistEntry *pe in [self arrangedObjects]) {
if(pe && !pe.deLeted && pe.length) {
if(!isnan([pe.length doubleValue])) tt += [pe.length doubleValue];
}
if(!isnan([pe.length doubleValue])) tt += [pe.length doubleValue];
}
long sec = (long)(tt);