[Bug 753601] New: alsasink: Probe a fixed set of rates instead of a range

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Aug 13 14:54:10 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=753601

            Bug ID: 753601
           Summary: alsasink: Probe a fixed set of rates instead of a
                    range
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: dv at pseudoterminal.org
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

The ALSA library lacks PCM functions to query for a set of supported sample
rates, and instead only allows for probing an allowed range. This however is at
odds with many modern DACs, which only support specific sample rates. For
example, some TI codecs support 44100, 48000, 96000, 192000, but not, say,
88200.

A solution would be to instead call snd_pcm_hw_params_test_rate() for a fixed
set of sample rates, like: 8000, 11025, 22050, 24000, 32000, 44100, 48000,
88200, 96000, 176400, 192000, 352800, 384000. Sample rates other than these are
pretty uncommon these days.

This alternative behavior could be added as an opt-in, and the existing
range-based probing could still be the default.

Thoughts?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list