# HG changeset patch # User cladisch # Date 1139563208 0 # Node ID e476a1d38087ca94fca563ecd4a12284fd6e662f # Parent 401521ec0d61b1d0cfef1aed0d524ceb5a515acd This adds support for more sample formats (U32, float BE, mu/A-law). diff -r 401521ec0d61 -r e476a1d38087 libao2/ao_alsa.c --- 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