fixes
This commit is contained in:
parent
e4f136344c
commit
e259bb6609
@ -183,7 +183,7 @@ class COpusFile : public IDecoder
|
|||||||
uint32 m_nRate;
|
uint32 m_nRate;
|
||||||
uint32 m_nChannels;
|
uint32 m_nChannels;
|
||||||
public:
|
public:
|
||||||
_declspec(noinline) COpusFile(const char *path) : m_FileH(nil),
|
COpusFile(const char *path) : m_FileH(nil),
|
||||||
m_bOpened(false),
|
m_bOpened(false),
|
||||||
m_nRate(0),
|
m_nRate(0),
|
||||||
m_nChannels(0)
|
m_nChannels(0)
|
||||||
@ -194,7 +194,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 = 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++) {
|
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 New Issue
Block a user