Float not supported by alsasink
Sebastian Dröge
sebastian at centricular.com
Tue May 16 11:48:20 UTC 2017
On Tue, 2017-05-16 at 03:41 -0700, vijaypalaniswamy wrote:
> Hi All,
>
> I tried playing ogg file, using vorbis decoder which gives PCM in float.
> Even the alsa device supports FLOAT pcm, the pipeline is not working without
> audioconvert [Required for format conversion from float to int]
>
> gst-launch-1.0 filesrc location=xxxx.ogg ! decodebin ! audioconvert !
> alsasink device=xxx
>
> By debugging I found in gst-plugins-base-1.8.3/ext/alsa/gstalsa.c function
> "gst_alsa_get_pcm_format"
> the float format is not added.
>
> So I compiled base plugin by adding below code
> [...]
>
> With above change I am able to play float PCM.
> Any reason why FLOAT was not considered in base alsa? Is it expected not to
> have float support.
> Please let me know any method to avoid using audioconvert.
It seems to be just a case of it not being added yet. Please file a bug
with your patch and we can discuss/merge that:
https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170516/73bfdada/attachment.sig>
More information about the gstreamer-devel
mailing list