twos 16bit 2 channels fixed.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11549 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2003-12-02 22:44:17 +00:00
parent c75021756e
commit f57af4a1d3
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ static int init(sh_audio_t *sh_audio)
case 0x736F7774: // 'twos' case 0x736F7774: // 'twos'
case 0x74776F73: // 'swot' case 0x74776F73: // 'swot'
if(sh_audio->samplesize==1) sh_audio->sample_format=AFMT_S8; if(sh_audio->samplesize==1) sh_audio->sample_format=AFMT_S8;
sh_audio->ds->ss_div= sh_audio->samplesize;
sh_audio->ds->ss_mul= sh_audio->samplesize * sh_audio->channels;
break; break;
default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AFMT_U8; default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AFMT_U8;
} }