2013-09-29, 07:14
This will enable ac3 and dts passthrough in xbmc on Rockchip TV Boxes like Minix Neo X5.
Maybe an extra setting in xbmc which Rockchip users can select?
http://minixforums.com/threads/how-to-ge...pdif.2041/
The changes in xbmc would be in the file AESinkAUDIOTRACK.cpp with the following code.
Should be replaced with this code.
Maybe an extra setting in xbmc which Rockchip users can select?
http://minixforums.com/threads/how-to-ge...pdif.2041/
The changes in xbmc would be in the file AESinkAUDIOTRACK.cpp with the following code.
Code:
Code:
jobject joAudioTrack = jenv->NewObject(jcAudioTrack, jmInit,
GetStaticIntField(jenv, "AudioManager", "STREAM_MUSIC");,
m_format.m_sampleRate,
channelConfig,
audioFormat,
min_buffer_size,
GetStaticIntField(jenv, "AudioTrack", "MODE_STREAM"));
Should be replaced with this code.
Code:
Code:
jint streamType;
if(!m_passthrough)
streamType = GetStaticIntField(jenv, "AudioManager", "STREAM_MUSIC");
else
streamType = GetStaticIntField(jenv, "AudioManager", "STREAM_VOICE_CALL");
jobject joAudioTrack = jenv->NewObject(jcAudioTrack, jmInit,
streamType,
m_format.m_sampleRate,
channelConfig,
audioFormat,
min_buffer_size,
GetStaticIntField(jenv, "AudioTrack", "MODE_STREAM"));