Mercurial > mplayer.hg
changeset 17571:e476a1d38087
This adds support for more sample formats (U32, float BE, mu/A-law).
author | cladisch |
---|---|
date | Fri, 10 Feb 2006 09:20:08 +0000 |
parents | 401521ec0d61 |
children | 580dc69d69bf |
files | libao2/ao_alsa.c |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_alsa.c Fri Feb 10 09:18:27 2006 +0000 +++ b/libao2/ao_alsa.c Fri Feb 10 09:20:08 2006 +0000 @@ -325,6 +325,12 @@ case AF_FORMAT_S16_BE: alsa_format = SND_PCM_FORMAT_S16_BE; break; + case AF_FORMAT_U32_LE: + alsa_format = SND_PCM_FORMAT_U32_LE; + break; + case AF_FORMAT_U32_BE: + alsa_format = SND_PCM_FORMAT_U32_BE; + break; case AF_FORMAT_S32_LE: alsa_format = SND_PCM_FORMAT_S32_LE; break; @@ -334,6 +340,15 @@ case AF_FORMAT_FLOAT_LE: alsa_format = SND_PCM_FORMAT_FLOAT_LE; break; + case AF_FORMAT_FLOAT_BE: + alsa_format = SND_PCM_FORMAT_FLOAT_BE; + break; + case AF_FORMAT_MU_LAW: + alsa_format = SND_PCM_FORMAT_MU_LAW; + break; + case AF_FORMAT_A_LAW: + alsa_format = SND_PCM_FORMAT_A_LAW; + break; default: alsa_format = SND_PCM_FORMAT_MPEG; //? default should be -1