Remove decode function of SimpleAudioDec and use its class method.

This commit is contained in:
kaienfr committed 2014-04-08 01:09:28 +02:00
1 parent 6d447bffb4
commit a576420547
4 files changed
+16 -26

No files matched your search

+1 -1
View File
@@ -742,7 +742,7 @@ int MediaEngine::getAudioSamples(u32 bufferPtr) {
int outbytes = 0;
if (m_audioContext != NULL) {
if (!AudioDecode(m_audioContext, audioFrame, frameSize, &outbytes, buffer)) {
if (!m_audioContext->Decode(audioFrame, frameSize, buffer, &outbytes)) {
ERROR_LOG(ME, "Audio (%s) decode failed during video playback", GetCodecName(m_audioType));
}
}