mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 16:45:41 +00:00
Fix playback of vanilla opus
This commit is contained in:
parent
d7b9884f9d
commit
a492f8ba0d
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ public:
|
||||||
|
|
||||||
if (m_FileH) {
|
if (m_FileH) {
|
||||||
m_nChannels = op_head(m_FileH, 0)->channel_count;
|
m_nChannels = op_head(m_FileH, 0)->channel_count;
|
||||||
m_nRate = op_head(m_FileH, 0)->input_sample_rate;
|
m_nRate = 48000;
|
||||||
const OpusTags *tags = op_tags(m_FileH, 0);
|
const OpusTags *tags = op_tags(m_FileH, 0);
|
||||||
for (int i = 0; i < tags->comments; i++) {
|
for (int i = 0; i < tags->comments; i++) {
|
||||||
if (strncmp(tags->user_comments[i], "SAMPLERATE", sizeof("SAMPLERATE")-1) == 0)
|
if (strncmp(tags->user_comments[i], "SAMPLERATE", sizeof("SAMPLERATE")-1) == 0)
|
||||||
|
|
Loading…
Reference in a new issue