add more frequencies to float->int conversion

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@680 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2009-08-30 03:57:33 +00:00
parent 041fa66065
commit 6887252661

View File

@ -46,9 +46,18 @@ VGMSTREAM * init_vgmstream_apple_caff(STREAMFILE *streamFile) {
if (read_32bitBE(chunk_offset+0x10, streamFile) != 0) goto fail;
switch (sratefloat)
{
case 0x40D58880:
sample_rate = 22050;
break;
case 0x40DF4000:
sample_rate = 32000;
break;
case 0x40E58880:
sample_rate = 44100;
break;
case 0x40E77000:
sample_rate = 48000;
break;
default:
goto fail;
}