how to choose a sound card using wmplayer sdk

how to choose a sound card using wmplayer sdk

Post by amRjaGFyYm » Thu, 07 Apr 2005 13:07:02


i need to be able to choose a sound card for the ActiveX player to play
through (using the API). I can't figure out how to do this from the
documentation. It is doable from Windows Media Player's GUI by:
Tools/Options/Devices/Speakers

I am using version 10.0.

Thanks
 
 
 

how to choose a sound card using wmplayer sdk

Post by Chris P. [ » Sat, 09 Apr 2005 22:44:17


Might want to try the microsoft.public.windowsmedia.sdk group.

 
 
 

how to choose a sound card using wmplayer sdk

Post by The March » Sat, 09 Apr 2005 23:15:32


The joys of multiposting ;)

He already has... and he got an answer from MSFT (can't be done).

See: http://www.yqcomputer.com/ #mp

--
Please read this before replying:
1. Dshow & posting help: http://www.yqcomputer.com/
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
 
 
 

how to choose a sound card using wmplayer sdk

Post by Chris P. [ » Sun, 10 Apr 2005 00:54:49


Ah, ok. Didn't think it could be done, but wasn't sure if maybe v10 had a
new option.
 
 
 

how to choose a sound card using wmplayer sdk

Post by amRjaGFyYm » Sun, 10 Apr 2005 04:01:02

I wasn't sure which group to post to. I hadn't received a response before I
posted here. Anyway, I'm new here and I appologize if I offended anyone!

I do have another question: since it IS POSSIBLE to choose a sound card with
Windows Media Player, but it is not possible using the SDK, does this mean
the MS developers have a more complete SDK they use?
 
 
 

how to choose a sound card using wmplayer sdk

Post by Alessandro » Sun, 10 Apr 2005 04:41:42


The WMP SDK documents the automation interface of the WMP
control. What WMP does internally is a completely different
thing and is not any kind of API other applications can use:
WMP's automation interface does not expose all possible
functionality of WMP's user interface.


--

// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
 
 
 

how to choose a sound card using wmplayer sdk

Post by Chris P. [ » Sun, 10 Apr 2005 05:42:51

On Fri, 8 Apr 2005 21:41:42 +0200, Alessandro Angeli [MVP::DigitalMedia]




Is it possible to change the rendering device by accessing WMP's graph and
replacing the renderer I wonder? What are the limitations to accessing
WMP's playback graph?

Obviously the easy way is to not use WMP at all and just create your own
playback graph in DirectShow.
 
 
 

how to choose a sound card using wmplayer sdk

Post by Alessandro » Sun, 10 Apr 2005 07:37:33


If you program in C/C++, there are 3 ways:

1. in WMP6.4, you can get a reference to the internal graph
the control's automation interface:
MediaPlayer.ActiveMovie.FilterGraph (IUnknown of the graph)
or ActiveMovie.FilterGraphDispatch (IDispatch of the graph),
then you can use the automation wrapper of DirectShow, so
this works in any COM/ActiveX-aware environment (C/C++, VB,
.NET... maybe even scripts)

2. in WMP10.0, you can implement IWMPGraphCreation and get
callbacks before and after the graph is built with a
reference to the internal graph, but this requires C/C++ (or
.NET if you write the managed wrapper yourself)

3. with any DirectShow-based application, you can get a
reference the internal graph with some variant of the hack I
described in detail here:

http://www.yqcomputer.com/


--

// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
 
 
 

how to choose a sound card using wmplayer sdk

Post by Chris P. [ » Sun, 10 Apr 2005 11:35:44

On Sat, 9 Apr 2005 00:37:33 +0200, Alessandro Angeli [MVP::DigitalMedia]



Wow, that's quite a thread.