Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fixes
  • Loading branch information
Sergeanur committed May 24, 2020
1 parent e4f1363 commit e259bb6609fc319f202016b3019e7ea8f3c3b5d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/audio/oal/stream.cpp
@@ -183,7 +183,7 @@ class COpusFile : public IDecoder
uint32 m_nRate;
uint32 m_nChannels;
public:
_declspec(noinline) COpusFile(const char *path) : m_FileH(nil),
COpusFile(const char *path) : m_FileH(nil),
m_bOpened(false),
m_nRate(0),
m_nChannels(0)
@@ -194,7 +194,7 @@ class COpusFile : public IDecoder
if (m_FileH) {
m_nChannels = op_head(m_FileH, 0)->channel_count;
m_nRate = op_head(m_FileH, 0)->input_sample_rate;
auto tags = op_tags(m_FileH, 0);
const OpusTags *tags = op_tags(m_FileH, 0);
for (int i = 0; i < tags->comments; i++) {
if (strncmp(tags->user_comments[i], "SAMPLERATE", sizeof("SAMPLERATE")-1) == 0)
{

0 comments on commit e259bb6

Please sign in to comment.