Ticket #28 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

need float32le <-> float32ne <-> float32be sample converters for network audio

Reported by: ed@… Owned by: lennart
Milestone: Component: core
Keywords: Cc:

Description

With default sink set to a different-endian machine:

$ gst-launch-0.10 audiotestsrc ! audioconvert ! audio/x-raw-float ! pulsesink Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /pipeline0/pulsesink0: Failed to connect stream: Invalid argument Additional debug info: pulsesink.c(399): gst_pulsesink_prepare (): /pipeline0/pulsesink0 ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ...

Meanwhile the other end has

sink-input.c: Unsupported resampling operation.

This is because sconv.c pa_get_convert_{to,from}_float32ne_function does not handle PA_SAMPLE_FLOAT32{B,L}E. Converting to an int format works fine.

Attachments

wrong-endian-convert.patch (1.7 kB) - added by ed@… 3 years ago.
Proposed patch.

Change History

Changed 3 years ago by ed@…

Proposed patch.

Changed 3 years ago by ossman

  • status changed from new to closed
  • resolution set to fixed

Merged in r1412. Thanks.

Note: See TracTickets for help on using tickets.