GNOME Bugzilla – Bug 728962
Add audiosink elements to support raw and ac3/dts passthrough on the RPI
Last modified: 2014-07-23 08:14:36 UTC
Created attachment 275150 [details] [review] omxaudiosink: Implements OpenMAX based audio sinks The provided patch adds audiosink feature to render audio using OpenMax. It has been developed and tested on the RPI and provides support for raw audio on omxanalogaudiosink and raw + ac3/dts passthrough on omxhdmisink.
Created attachment 275155 [details] [review] omxaudiosink: Implements OpenMAX based audio sinks Amend the commit message to reflect this bug# and describe some more the capabilities provided.
Created attachment 276214 [details] [review] omxaudiosink: Implements OpenMAX based audio sinks Rebased to latest master
Commit: b3eb4d897d83713d858839ebd8b01bad510e13b0 URL: http://cgit.freedesktop.org/gstreamer/gst-omx/commit/?id=b3eb4d897d83713d858839ebd8b01bad510e13b0 Author: Josep Torra <n770galaxy@gmail.com> Date: Fri Apr 4 14:11:58 2014 +0200 omxaudiosink: Implements OpenMAX based audio sinks Provides omxanalogaudiosink and omxhdmiaudiosink elements on the Raspberry PI. - omxanalogaudiosink is capable to render raw mono or stereo audio through the jack output. - omxhdmiaudiosink is capable to render raw audio up to 8 channels and transmit ac3/dts(IEC 61937) through the HDMI output. - sinks provide a clock derived from rendered samples - sinks support the GstStreamVolume interface by implementing the volume and mute properties. https://bugzilla.gnome.org/show_bug.cgi?id=728962 ---
This currently breaks compilation on all other targets than the RPi: gstomxaudiosink.c:897:7: error: use of undeclared identifier 'OMX_IndexConfigAudioRenderingLatency'; did you mean 'OMX_IndexConfigAudioReverberation'? OMX_IndexConfigAudioRenderingLatency, ¶m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build breakage fixed in the following commit. Commit: e08540d969c170a37425b07b8e5b97b2bfbf880a URL: http://cgit.freedesktop.org/gstreamer/gst-omx/commit/?id=e08540d969c170a37425b07b8e5b97b2bfbf880a Author: Josep Torra <n770galaxy@gmail.com> Date: Mon May 12 12:33:32 2014 +0200 omxaudiosink: implement _delay only in the RaspberryPI Make code implementation conditionally built for RaspberryPI because OMX_IndexConfigAudioRenderingLatency seems to be a Broadcom extension. On other targets the query position might not be accurate without implementing _delay appropriatelly.