summaryrefslogtreecommitdiff
path: root/dxr3audiodecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3audiodecoder.c')
-rw-r--r--dxr3audiodecoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dxr3audiodecoder.c b/dxr3audiodecoder.c
index a4ee123..b9a0b66 100644
--- a/dxr3audiodecoder.c
+++ b/dxr3audiodecoder.c
@@ -146,7 +146,7 @@ void cDxr3AudioDecoder::Decode(const uint8_t* buf, int length, uint32_t pts, cDx
if (m_Codec.codec_context.sample_rate != m_Rate)
{
cLog::Instance() << "cDxr3AudioDecoder::Decode Sample rate = " << m_Codec.codec_context.sample_rate << "\n";
- if (rate != -1) throw UNEXPECTED_PARAMETER_CHANGE;
+ if (m_Rate != -1) throw UNEXPECTED_PARAMETER_CHANGE;
m_Rate = m_Codec.codec_context.sample_rate;
}
if (m_Codec.codec_context.channels != m_Channels+1 )
@@ -157,9 +157,9 @@ void cDxr3AudioDecoder::Decode(const uint8_t* buf, int length, uint32_t pts, cDx
}
if (out_size)
{
- cFixedLengthFrame* pTempFrame = aBuf.Push(PcmBuf, out_size, pts);
- pTempFrame->SetChannelCount(channels);
- pTempFrame->SetDataRate(rate);
+ cFixedLengthFrame* pTempFrame = aBuf.Push(m_PcmBuf, out_size, pts);
+ pTempFrame->SetChannelCount(m_Channels);
+ pTempFrame->SetDataRate(m_Rate);
}
length -= len;
buf += len;