[MPlayer-dev-eng] Support for new sample formats
Alban Bedel
albeu at free.fr
Tue Nov 12 20:11:38 CET 2002
Hi Alban Bedel,
on Tue, 12 Nov 2002 15:21:32 +0100 you wrote:
> Hi Anders Johansson,
>
> on Tue, 12 Nov 2002 20:52:24 +0800 you wrote:
>
> > Hi,
> >
> > There is support for new types of sample formats in the audio
> > filters. The new types are ima-adpcm, A-law, mu-law and float.
> Cool, iirc libvorbis is outputing float and ad_vorbis contain a flot->int
> converter. We can perhaps remove it now.
Sadly it doesn't look that easy. I got a short look at all this audio stuff and still
have questions. First it seems that the ao driver is opened and then the
af chain is builded. So if I put sh_a->sample_format = AFMT_FLOAT (after
adding the fmt id conversion in libaf) then as the ao don't know this format it
fallback to something stupid or isn't properly configured dunno.
Imho like for video the ao should be configured from libaf to be sure that
the best possible conversion is used. Is it planned or is it impossible for
some reasons ?
Albeu
PS : BTW is it know that some thing like ./mplayer file -af format=notAformat
crash ? If not and you'll need it I send a full BR.
More information about the MPlayer-dev-eng
mailing list