Cog icon indicating copy to clipboard operation
Cog copied to clipboard

Feature Request: Automatic sample rate switching

Open superjeng1 opened this issue 2 years ago • 5 comments

Describe Add an option to allow the player to automatically change the sample rate of the output device.

Expected behavior The player would look at the sample rate of the track before playing, and change the sample rate of the output device if they mismatches.

superjeng1 avatar Apr 08 '23 18:04 superjeng1

I'm not sure it's really possible to do that with the current output method, since it automatically handles all output format conversion from arbitrary sample rates and channel counts. Also, changing the output device format introduces a gap in the audio.

kode54 avatar Jun 04 '23 09:06 kode54

This one probably won't be happening since I currently use a low latency convolver for the optional HRTF. Maybe I'll look into it, but I don't know how slow resampling the impulses is, especially considering how tiny they are.

kode54 avatar Oct 09 '23 00:10 kode54

This is quite important to me. I can easily tell the difference if the sample rate is not synced.

There are players like Audirvana and Tonal support this, but they all use a library to contain audio files. I'm searching for a simple Hifi player for macOS to play single files. I hope Cog can support the sync sample rate feature. Otherwise, Cog is perfect.

megabitsenmzq avatar Dec 10 '23 08:12 megabitsenmzq

I'd ask you to double blind validate that you can hear the difference between resampled audio, but you'd probably lie your way through that as well.

Set the sample rate to the highest you're comfortable using. I don't think there's really any point to setting the rate lower just to match files in that case.

kode54 avatar Jun 12 '25 09:06 kode54

It was two years before so I could not recall the situation.

But it was not just like the audio is resampled. It seems the resample causing some glitches and that makes the sound a little bit weird. Maybe my DAC is causing the problem though.

megabitsenmzq avatar Jun 12 '25 13:06 megabitsenmzq