mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
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:
parent
86a6254470
commit
bb6ed86d98
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user