Author Topic: Determine the actual output frequency and resolution  (Read 88 times)

HakanL

  • Posts: 1
I'm using BASS on Linux and my sound card is supporting 192 kHz 32-bit sound, which I believe I have set up, but is there a way to query via BASS what is the actual output format? I can set 192,000 as frequency and FLOAT, no errors, but I'm personally struggling to hear much difference so I'd like to just make sure via the API that it's actually sending what I assume it is. Is there a way?

Ian @ un4seen

  • Administrator
  • Posts: 26264
Re: Determine the actual output frequency and resolution
« Reply #1 on: 13 Jan '25 - 17:58 »
If you're using a hardware device directly (its BASS_DEVICEINFO "driver" value begins with "hw:") then the device's output rate will match BASS's, which you can get from BASS_GetInfo. Otherwise, the rates may be different and unfortunately there's no way to check that through BASS. You can use the output system's tools to check its format, eg. "pactl list sinks" if you're using pulseaudio or pipewire.