From: <mis...@us...> - 2007-02-22 09:53:57
|
Revision: 132 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=132&view=rev Author: misterd_sf Date: 2007-02-22 01:53:53 -0800 (Thu, 22 Feb 2007) Log Message: ----------- Changed sound output driver behaviour Modified Paths: -------------- trunk/plugins/My MPlayer/MPlayer_ExtPlayer/ConfigurationForm.cs trunk/plugins/My MPlayer/MPlayer_ExtPlayer/MPlayer_ExtPlayer.csproj Modified: trunk/plugins/My MPlayer/MPlayer_ExtPlayer/ConfigurationForm.cs =================================================================== --- trunk/plugins/My MPlayer/MPlayer_ExtPlayer/ConfigurationForm.cs 2007-02-22 09:40:19 UTC (rev 131) +++ trunk/plugins/My MPlayer/MPlayer_ExtPlayer/ConfigurationForm.cs 2007-02-22 09:53:53 UTC (rev 132) @@ -23,6 +23,7 @@ #endregion using System; +using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; @@ -31,6 +32,7 @@ using System.Text; using System.Windows.Forms; using System.Xml; +using DShowNET.Helper; using MediaPortal.GUI.Library; using MediaPortal.Util; using MediaPortal.Configuration; @@ -64,11 +66,13 @@ osdFont.Items.AddRange(manager.PossibleFonts); soundOutputDevice.Items.Clear(); soundOutputDevice.Items.Add("Default DirectSound Device"); - AudioMixerHelper.MIXERCAPS wic = new AudioMixerHelper.MIXERCAPS(); - int iNumDevs = mixerGetNumDevs(); - for (int i = 0; i < iNumDevs; i++) { - mixerGetDevCaps(i, ref wic, Marshal.SizeOf(wic)); - soundOutputDevice.Items.Add(wic.szPname); + // + // Fetch available Audio Renderers + // + foreach (Filter audioRenderer in Filters.AudioRenderers) { + if(audioRenderer.Name.StartsWith("DirectSound: ")){ + soundOutputDevice.Items.Add(audioRenderer.Name.Remove(0,13)); + } } } #endregion Modified: trunk/plugins/My MPlayer/MPlayer_ExtPlayer/MPlayer_ExtPlayer.csproj =================================================================== --- trunk/plugins/My MPlayer/MPlayer_ExtPlayer/MPlayer_ExtPlayer.csproj 2007-02-22 09:40:19 UTC (rev 131) +++ trunk/plugins/My MPlayer/MPlayer_ExtPlayer/MPlayer_ExtPlayer.csproj 2007-02-22 09:53:53 UTC (rev 132) @@ -31,10 +31,6 @@ <DocumentationFile>bin\Release\MPlayer_ExtPlayer.xml</DocumentationFile> </PropertyGroup> <ItemGroup> - <Reference Include="Bass.Net, Version=2.3.1.1, Culture=neutral, PublicKeyToken=b7566c273e6ef480, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\MediaPortal\MediaPortal.Base\Bass.Net.dll</HintPath> - </Reference> <Reference Include="Core, Version=1.0.2417.39196, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |