[vlc-devel] Starting Scaletempo for VLC

Remi Denis-Courmont rdenis at simphalempin.com
Mon Jun 9 11:07:53 CEST 2008


On Mon, 9 Jun 2008 09:28:22 +0200, Antoine Cellerier <dionoea at videolan.org>
wrote:
>> - How to get samples as s16 or float?
> 
> You can restrict allowed input formats in your filter. Just return an
> error in the init function if the formats you got do not suit your
> needs. (Or you could just accept any input format and spawn the
> appropriate audio filter module to convert to s16 if needed)

AFAIK, the normal format within VLC is fl32, so you should at least handle
this one. Unless there is a reason to handle another format directly, let
the core do the conversion to fl32 (and then from fl32 to whatever the
audio output wants).

-- 
Rémi




More information about the vlc-devel mailing list