just bought sound blaster X-Fi HD (USB) and i'm trying to understand what is the current output (sample rate and bit rate).
I've configured /etc/pulse/daemon.conf and set there the following values:
default-sample-rate = 96000 default-sample-format = s24le
How do i validate it?
Pulseaudio settings adhere to the sink they are made for. Hence we are able to read the values we gave with the following command:
This will give a rather lengthy list including the following information similar to this
as this was set for my internal card.
You can also look under the hood of ALSA itself, to double check what sample rate your hardware is actually set to.
less /proc/asound/card0/pcm0p/sub0/hw_params
(numbers may vary, e.g. card1, and maybe a different playback channel on the card. xp are playback channels, xc are capture channels). Not 100% sure if the hw_params file is specific to hda_intel, or if it'll be there with whatever alsa driver you have.
In a typical setup, applications use the default ALSA output, which is actually a hook to send the audio through pulseaudio, which itself outputs to hardware through alsa, using the actual names of the hw device. (alsa devices are specified with text strings like
hw:0
, ordefault
).