mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-06 22:54:26 +01:00
Merge pull request #460 from bxaimc/master
fix opus sample rate for Grandia HD Collection (Switch)
This commit is contained in:
commit
5aa151f342
@ -42,7 +42,8 @@ static VGMSTREAM * init_vgmstream_opus(STREAMFILE *streamFile, meta_t meta_type,
|
|||||||
|
|
||||||
vgmstream->meta_type = meta_type;
|
vgmstream->meta_type = meta_type;
|
||||||
vgmstream->sample_rate = read_32bitLE(offset + 0x0c,streamFile);
|
vgmstream->sample_rate = read_32bitLE(offset + 0x0c,streamFile);
|
||||||
|
if (vgmstream->sample_rate == 16000)
|
||||||
|
vgmstream->sample_rate = 48000; // Grandia HD Collection contains a false sample_rate in header
|
||||||
vgmstream->num_samples = num_samples;
|
vgmstream->num_samples = num_samples;
|
||||||
vgmstream->loop_start_sample = loop_start;
|
vgmstream->loop_start_sample = loop_start;
|
||||||
vgmstream->loop_end_sample = loop_end;
|
vgmstream->loop_end_sample = loop_end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user