[gst-devel] audio/raw = 16 bit int?
wim.taymans at chello.be
Fri Mar 9 18:12:31 CET 2001
On 09 Mar 2001 17:35:00 +0100, Owen Fraser-Green wrote:
> A quick question regarding audio/raw. I noticed sample resolution
> (MetaAudioRaw->bps) must be AFMT_S(8|16)_LE and audio data is passed as
> integers. Woudn't it be better for audio/raw to be 32-bit floats? By using
> 16-bit signal processing, even (especially) if the output resolution is 16-
> bit, aliasing effects can easily be introduced. It also means that there
> are currently a lot of "magic" numbers floating around (because the range
> is 0 to 2^16-1 instead of just -1 to 1) plus there's a lot of casting going
> on e.g. sinesrc and volume.
yes, but only when we have caps negotiation working. The properties you
a pad can then be anything you want. You also will have to create a
converter that does
the float to int conversion so that common cards can handle the data.
More information about the gstreamer-devel