Mercurial > mplayer.hg
comparison libmpcodecs/ad_pcm.c @ 13553:0febef62023e
make use of 24bit afmt
author | alex |
---|---|
date | Mon, 04 Oct 2004 20:21:05 +0000 |
parents | 4edbef7dd28d |
children | efe58d68689e |
comparison
equal
deleted
inserted
replaced
13552:d40a1dfbf1d9 | 13553:0febef62023e |
---|---|
29 case 0x0: | 29 case 0x0: |
30 case 0x1: // Microsoft PCM | 30 case 0x1: // Microsoft PCM |
31 switch (sh_audio->samplesize) { | 31 switch (sh_audio->samplesize) { |
32 case 1: sh_audio->sample_format=AFMT_U8; break; | 32 case 1: sh_audio->sample_format=AFMT_U8; break; |
33 case 2: sh_audio->sample_format=AFMT_S16_LE; break; | 33 case 2: sh_audio->sample_format=AFMT_S16_LE; break; |
34 case 3: sh_audio->sample_format=AFMT_AF_FLAGS | AF_FORMAT_I | | 34 case 3: sh_audio->sample_format=AFMT_S24_LE; break; |
35 AF_FORMAT_LE | AF_FORMAT_SI; | |
36 break; | |
37 case 4: sh_audio->sample_format=AFMT_S32_LE; break; | 35 case 4: sh_audio->sample_format=AFMT_S32_LE; break; |
38 } | 36 } |
39 break; | 37 break; |
40 case 0x6: sh_audio->sample_format=AFMT_A_LAW;break; | 38 case 0x6: sh_audio->sample_format=AFMT_A_LAW;break; |
41 case 0x7: sh_audio->sample_format=AFMT_MU_LAW;break; | 39 case 0x7: sh_audio->sample_format=AFMT_MU_LAW;break; |