Added sample rate hack for files with an unspecified frequency

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@876 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
bxaimc 2010-11-05 02:14:53 +00:00
parent 86a6254470
commit bb6ed86d98

View File

@ -37,7 +37,12 @@ VGMSTREAM * init_vgmstream_ps3_msf(STREAMFILE *streamFile) {
/* fill in the vital statistics */
vgmstream->channels = channel_count;
vgmstream->sample_rate = read_32bitBE(0x10,streamFile);
/* Sample rate hack for strange files that don't have a specified frequency */
if (read_32bitBE(0x10,streamFile)==0x00000000)
vgmstream->sample_rate = 48000;
else
vgmstream->sample_rate = read_32bitBE(0x10,streamFile);
start_offset = 0x40;