diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-04 19:05:16 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-04 19:05:16 +0000 |
commit | 83c1543028b9b7748dcd49338abd3658717be94f (patch) | |
tree | 1df0c44c5bde8e1c8ad8206fda649b0064eb312a /libao2/afmt.c | |
parent | e40f077b8326a900bfd4bdd2ff84d7f3ecceb8e6 (diff) | |
download | mpv-83c1543028b9b7748dcd49338abd3658717be94f.tar.bz2 mpv-83c1543028b9b7748dcd49338abd3658717be94f.tar.xz |
introducing 24bit formats and make the values compliant to OSS
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13549 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/afmt.c')
-rw-r--r-- | libao2/afmt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libao2/afmt.c b/libao2/afmt.c index 9383079a86..78ddd9ddf2 100644 --- a/libao2/afmt.c +++ b/libao2/afmt.c @@ -34,6 +34,10 @@ char *audio_out_format_name(int format) return("Signed 32-bit (Little-Endian)"); case AFMT_S32_BE: return("Signed 32-bit (Big-Endian)"); + case AFMT_S24_LE: + return("Signed 24-bit (Little-Endian)"); + case AFMT_S24_BE: + return("Signed 24-bit (Big-Endian)"); case AFMT_FLOAT: return("Floating Point"); } @@ -54,6 +58,10 @@ int audio_out_format_bits(int format){ case AFMT_S32_BE: case AFMT_FLOAT: return 32; + + case AFMT_S24_LE: + case AFMT_S24_BE: + return 24; case AFMT_MU_LAW: case AFMT_A_LAW: |