2011-11-29, 15:12
After some search I found the following
in the https://github.com/xbmc/xbmc/blob/Dharma...ttings.cpp
there is the definition of CVideoSettings. There it has (at line 52)
m_AudioDelay = 0.0f;
by adding a
m_AudioDelay2 = 0.0f;
you could add a second setting that vould be used for the second audio.
Also in https://github.com/xbmc/xbmc/blob/Dharma...ttings.cpp
at line 58 there is the definition of the menu item
define AUDIO_SETTINGS_DELAY 3
you can do the following two steps
step 1. adjust the #define block from
#define AUDIO_SETTINGS_VOLUME 1
#define AUDIO_SETTINGS_VOLUME_AMPLIFICATION 2
#define AUDIO_SETTINGS_DELAY 3
#define AUDIO_SETTINGS_STREAM 4
#define AUDIO_SETTINGS_OUTPUT_TO_ALL_SPEAKERS 5
#define AUDIO_SETTINGS_DIGITAL_ANALOG 6// separator 7
#define SUBTITLE_SETTINGS_ENABLE 8
#define SUBTITLE_SETTINGS_DELAY 9
#define SUBTITLE_SETTINGS_STREAM 10
#define SUBTITLE_SETTINGS_BROWSER 11
#define AUDIO_SETTINGS_MAKE_DEFAULT 12
to
#define AUDIO_SETTINGS_VOLUME 1
#define AUDIO_SETTINGS_VOLUME_AMPLIFICATION 2
#define AUDIO_SETTINGS_DELAY 3
#define AUDIO_SETTINGS_DELAY 4
#define AUDIO_SETTINGS_STREAM 5
#define AUDIO_SETTINGS_OUTPUT_TO_ALL_SPEAKERS 6
#define AUDIO_SETTINGS_DIGITAL_ANALOG 7
// separator 8
#define SUBTITLE_SETTINGS_ENABLE 9
#define SUBTITLE_SETTINGS_DELAY 10
#define SUBTITLE_SETTINGS_STREAM 11
#define SUBTITLE_SETTINGS_BROWSER 12
#define AUDIO_SETTINGS_MAKE_DEFAULT 13
step 2.
add the following line
AddSlider(AUDIO_SETTINGS_DELAY2, 297, &g_settings.m_currentVideoSettings.m_AudioDelay2, -g_advancedSettings.m_videoAudioDelayRange, .025f, g_advancedSettings.m_videoAudioDelayRange, FormatDelay);
This way we add an extra menu item for the second delay and also we see that the audio delay setting is stored in the m_AudioDelay & m_AudioDelay2 variables.
The problem is that I don't know how to compile the xbmc and apply patches in order to check these settings. I 'll try to find it in the next few days
in the https://github.com/xbmc/xbmc/blob/Dharma...ttings.cpp
there is the definition of CVideoSettings. There it has (at line 52)
m_AudioDelay = 0.0f;
by adding a
m_AudioDelay2 = 0.0f;
you could add a second setting that vould be used for the second audio.
Also in https://github.com/xbmc/xbmc/blob/Dharma...ttings.cpp
at line 58 there is the definition of the menu item
define AUDIO_SETTINGS_DELAY 3
you can do the following two steps
step 1. adjust the #define block from
#define AUDIO_SETTINGS_VOLUME 1
#define AUDIO_SETTINGS_VOLUME_AMPLIFICATION 2
#define AUDIO_SETTINGS_DELAY 3
#define AUDIO_SETTINGS_STREAM 4
#define AUDIO_SETTINGS_OUTPUT_TO_ALL_SPEAKERS 5
#define AUDIO_SETTINGS_DIGITAL_ANALOG 6// separator 7
#define SUBTITLE_SETTINGS_ENABLE 8
#define SUBTITLE_SETTINGS_DELAY 9
#define SUBTITLE_SETTINGS_STREAM 10
#define SUBTITLE_SETTINGS_BROWSER 11
#define AUDIO_SETTINGS_MAKE_DEFAULT 12
to
#define AUDIO_SETTINGS_VOLUME 1
#define AUDIO_SETTINGS_VOLUME_AMPLIFICATION 2
#define AUDIO_SETTINGS_DELAY 3
#define AUDIO_SETTINGS_DELAY 4
#define AUDIO_SETTINGS_STREAM 5
#define AUDIO_SETTINGS_OUTPUT_TO_ALL_SPEAKERS 6
#define AUDIO_SETTINGS_DIGITAL_ANALOG 7
// separator 8
#define SUBTITLE_SETTINGS_ENABLE 9
#define SUBTITLE_SETTINGS_DELAY 10
#define SUBTITLE_SETTINGS_STREAM 11
#define SUBTITLE_SETTINGS_BROWSER 12
#define AUDIO_SETTINGS_MAKE_DEFAULT 13
step 2.
add the following line
AddSlider(AUDIO_SETTINGS_DELAY2, 297, &g_settings.m_currentVideoSettings.m_AudioDelay2, -g_advancedSettings.m_videoAudioDelayRange, .025f, g_advancedSettings.m_videoAudioDelayRange, FormatDelay);
This way we add an extra menu item for the second delay and also we see that the audio delay setting is stored in the m_AudioDelay & m_AudioDelay2 variables.
The problem is that I don't know how to compile the xbmc and apply patches in order to check these settings. I 'll try to find it in the next few days