diff options
-rw-r--r-- | xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp | 51 | ||||
-rw-r--r-- | xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.h | 1 |
2 files changed, 0 insertions, 52 deletions
diff --git a/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp b/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp index 1ff50bf164..442b6f2830 100644 --- a/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp +++ b/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp @@ -140,19 +140,6 @@ void CGUIDialogAudioSubtitleSettings::OnSettingChanged(const CSetting *setting) else if (settingId == SETTING_AUDIO_STREAM) { m_audioStream = static_cast<const CSettingInt*>(setting)->GetValue(); - - // first check if it's a stereo track that we can change between stereo, left and right - if (g_application.m_pPlayer->GetAudioStreamCount() == 1) - { - if (m_audioStreamStereoMode) - { // we're in the case we want - call the code to switch channels etc. - // update the screen setting... - videoSettings.m_AudioStream = -1 - m_audioStream; - // call monkeyh1's code here... - //bool bAudioOnAllSpeakers = (CSettings::Get().GetInt("audiooutput.mode") == AUDIO_IEC958) && CMediaSettings::Get().GetCurrentVideoSettings().m_OutputToAllSpeakers; - return; - } - } // only change the audio stream if a different one has been asked for if (g_application.m_pPlayer->GetAudioStream() != m_audioStream) { @@ -397,7 +384,6 @@ bool CGUIDialogAudioSubtitleSettings::SupportsSubtitleFeature(int feature) void CGUIDialogAudioSubtitleSettings::AddAudioStreams(CSettingGroup *group, const std::string &settingId) { - m_audioStreamStereoMode = false; if (group == NULL || settingId.empty()) return; @@ -405,43 +391,6 @@ void CGUIDialogAudioSubtitleSettings::AddAudioStreams(CSettingGroup *group, cons if (m_audioStream < 0) m_audioStream = 0; - // check if we have a single, stereo stream, and if so, allow us to split into - // left, right or both - if (g_application.m_pPlayer->GetAudioStreamCount() == 1) - { - CStdString strAudioInfo; - g_application.m_pPlayer->GetAudioInfo(strAudioInfo); - - /* TODO:STRING_CLEANUP */ - int iNumChannels = 0; - size_t pos = strAudioInfo.find("chns:"); - if (pos != std::string::npos) - iNumChannels = static_cast<int>(strtol(strAudioInfo.substr(pos + 5).c_str(), NULL, 0)); - - std::string strAudioCodec; - if (strAudioInfo.size() > 7) - strAudioCodec = strAudioInfo.substr(7, strAudioInfo.find(") VBR") - 5); - - bool bDTS = strAudioCodec.find("DTS") != std::string::npos; - bool bAC3 = strAudioCodec.find("AC3") != std::string::npos; - - if (iNumChannels == 2 && !(bDTS || bAC3)) - { // ok, enable these options -/* if (CMediaSettings::Get().GetCurrentVideoSettings().m_AudioStream == -1) - { // default to stereo stream - CMediaSettings::Get().GetCurrentVideoSettings().m_AudioStream = 0; - }*/ - StaticIntegerSettingOptions options; - for (int i = 0; i < 3; ++i) - options.push_back(make_pair(13320 + i, i)); - - m_audioStream = -g_application.m_pPlayer->GetAudioStream() - 1; - m_audioStreamStereoMode = true; - AddSpinner(group, settingId, 460, 0, m_audioStream, options); - return; - } - } - AddSpinner(group, settingId, 460, 0, m_audioStream, AudioStreamsOptionFiller); } diff --git a/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.h b/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.h index 9d6279b61f..275fb990b2 100644 --- a/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.h +++ b/xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.h @@ -61,7 +61,6 @@ protected: float m_volume; int m_audioStream; - bool m_audioStreamStereoMode; bool m_passthrough; int m_subtitleStream; bool m_subtitleVisible; |