Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[IOS/ATV2] added hoock up drc in audio render

  • Loading branch information...
commit 1199436ecd71bf5be3e36cf723107cdfc7c8cd2b 1 parent 431d3d0
huceke authored
View
4 xbmc/cores/AudioRenderers/IOSAudioRenderer.cpp
@@ -178,6 +178,8 @@ bool CIOSAudioRenderer::Initialize(IAudioCallback* pCallback, const CStdString&
m_DoRunout = 0;
+ m_drc = 0;
+
return true;
}
@@ -300,7 +302,7 @@ unsigned int CIOSAudioRenderer::AddPackets(const void* data, DWORD len)
uint8_t outData[length];
// remap the audio channels using the frame count
- m_remap.Remap((void*)data, outData, frames);
+ m_remap.Remap((void*)data, outData, frames, m_drc);
status = m_Buffer->Write(outData, length);
// return the number of input bytes we accepted
View
3  xbmc/cores/AudioRenderers/IOSAudioRenderer.h
@@ -49,6 +49,7 @@ class CIOSAudioRenderer : public IAudioRenderer
virtual long GetCurrentVolume() const;
virtual void Mute(bool bMute);
virtual bool SetCurrentVolume(long nVolume);
+ virtual void SetDynamicRangeCompression(long drc) { m_drc = drc; }
virtual void WaitCompletion();
// Unimplemented IAudioRenderer methods
@@ -93,6 +94,8 @@ class CIOSAudioRenderer : public IAudioRenderer
unsigned int m_Channels;
bool m_Passthrough;
+ long m_drc;
+
};
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.