summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-24 17:43:50 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-24 17:43:50 +0200
commite259bb6609fc319f202016b3019e7ea8f3c3b5d2 (patch)
tree3a08fddd237d5ecddae06724accae216d838d774 /src
parentMerge remote-tracking branch 'origin/master' into opus (diff)
downloadre3-e259bb6609fc319f202016b3019e7ea8f3c3b5d2.tar
re3-e259bb6609fc319f202016b3019e7ea8f3c3b5d2.tar.gz
re3-e259bb6609fc319f202016b3019e7ea8f3c3b5d2.tar.bz2
re3-e259bb6609fc319f202016b3019e7ea8f3c3b5d2.tar.lz
re3-e259bb6609fc319f202016b3019e7ea8f3c3b5d2.tar.xz
re3-e259bb6609fc319f202016b3019e7ea8f3c3b5d2.tar.zst
re3-e259bb6609fc319f202016b3019e7ea8f3c3b5d2.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/oal/stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/oal/stream.cpp b/src/audio/oal/stream.cpp
index 597b3fb7..b129f6d4 100644
--- a/src/audio/oal/stream.cpp
+++ b/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 @@ public:
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)
{