diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-02-08 02:47:15 +0300 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-02-08 02:47:15 +0300 |
commit | 8121dd5e23c4dfe98c6a7bcc306f96593cc3537c (patch) | |
tree | 674f587c0b0fc9b6c5c36f7d12d3155e33720c43 /src/apps/mplayerc/PPageOutput.cpp | |
parent | e0d8de52a037e07e12c4f7129b84b9082268b5bf (diff) |
Feature Request #46(patch X-Dron); add number to AudioDevice list;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1635 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageOutput.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageOutput.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/apps/mplayerc/PPageOutput.cpp b/src/apps/mplayerc/PPageOutput.cpp index 3feb27635..caa12d38c 100644 --- a/src/apps/mplayerc/PPageOutput.cpp +++ b/src/apps/mplayerc/PPageOutput.cpp @@ -115,9 +115,12 @@ BOOL CPPageOutput::OnInitDialog() m_fResetDevice = s.fResetDevice;
m_AudioRendererDisplayNames.Add(_T(""));
- m_iAudioRendererTypeCtrl.AddString(_T("System Default"));
+ m_iAudioRendererTypeCtrl.AddString(_T("1: System Default"));
m_iAudioRendererType = 0;
+ int i=2;
+ CString Cbstr;
+
BeginEnumSysDev(CLSID_AudioRendererCategory, pMoniker)
{
LPOLESTR olestr = NULL;
@@ -147,33 +150,37 @@ BOOL CPPageOutput::OnInitDialog() SafeArrayUnaccessData(var.parray);
}
}
-
- m_iAudioRendererTypeCtrl.AddString(fstr);
+ Cbstr.Format(_T("%d: %s"), i, fstr);
}
else
- {
- m_iAudioRendererTypeCtrl.AddString(CString(str));
+ {
+ Cbstr.Format(_T("%d: %s"), i, CString(str));
}
+ m_iAudioRendererTypeCtrl.AddString(Cbstr);
if(s.AudioRendererDisplayName == str && m_iAudioRendererType == 0)
{
m_iAudioRendererType = m_iAudioRendererTypeCtrl.GetCount()-1;
}
+ i++;
}
EndEnumSysDev
+ Cbstr.Format(_T("%d: %s"), i++, AUDRNDT_NULL_COMP);
m_AudioRendererDisplayNames.Add(AUDRNDT_NULL_COMP);
- m_iAudioRendererTypeCtrl.AddString(AUDRNDT_NULL_COMP);
+ m_iAudioRendererTypeCtrl.AddString(Cbstr);
if(s.AudioRendererDisplayName == AUDRNDT_NULL_COMP && m_iAudioRendererType == 0)
m_iAudioRendererType = m_iAudioRendererTypeCtrl.GetCount()-1;
+ Cbstr.Format(_T("%d: %s"), i++, AUDRNDT_NULL_UNCOMP);
m_AudioRendererDisplayNames.Add(AUDRNDT_NULL_UNCOMP);
- m_iAudioRendererTypeCtrl.AddString(AUDRNDT_NULL_UNCOMP);
+ m_iAudioRendererTypeCtrl.AddString(Cbstr);
if(s.AudioRendererDisplayName == AUDRNDT_NULL_UNCOMP && m_iAudioRendererType == 0)
m_iAudioRendererType = m_iAudioRendererTypeCtrl.GetCount()-1;
+ Cbstr.Format(_T("%d: %s"), i++, AUDRNDT_MPC);
m_AudioRendererDisplayNames.Add(AUDRNDT_MPC);
- m_iAudioRendererTypeCtrl.AddString(AUDRNDT_MPC);
+ m_iAudioRendererTypeCtrl.AddString(Cbstr);
if(s.AudioRendererDisplayName == AUDRNDT_MPC && m_iAudioRendererType == 0)
m_iAudioRendererType = m_iAudioRendererTypeCtrl.GetCount()-1;
|