[Bug 792897] wasapi: Implement multichannel support and a device provider
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jan 25 18:06:31 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=792897
Sebastian Dröge (slomo) <slomo at coaxion.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |slomo at coaxion.net
--- Comment #7 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Nirbheek Chauhan from comment #5)
> > Considering the code further below, it might be easiest to just define a
> > mapping table between WASAPI and GStreamer, and use that for all cases. Now
> > you special-case <= 9 channels in a weird way
> >
>
> I couldn't immediately think of a clean way to also populate the positions
> array at the same time without having a bunch of ugly macros. Do you have
> suggestions?
You just do a table
struct {
guint64 wasapi_enum;
GstAudioChannelPosition gst_enum;
} positions[] = {
{ WASAPI_FRONT_LEFT, GST_FRONT_LEFT },
...
};
And then iterate over that to find the correct matches and build your channel
positions array, channel mask, etc.
--
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