DirectShow to play Mp3 + Select Sound Card
WinXP VB6 SP6
Hi,
I have been playing with member Jacob Roman's
http://www.vbforums.com/member.php?50926-Jacob-Roman
DirectShow Mp3 Example.zip
http://www.vbforums.com/attachment.p...9&d=1321884599
This great code uses DirectShow to play Mp3s and gives control over speed of the song, volume, balance, position, play, pause, stop, and loop, and it all works Great :)
But it does not let you select the Sound Card :cry:
I know it is possible to select sound card with DirectShow but I have NOT managed find the correct code for it yet.
Any help to include a Select Sound Card into this code would be great :D
:D
Re: DirectShow to play Mp3 + Select Sound Card
Re: DirectShow to play Mp3 + Select Sound Card
Quote:
Originally Posted by
LaVolpe
In one word NO ;)
That article clearly states...
Quote:
This code should be called after the wave file to be played has been opened by MMControl1.
Thanks for the reply but :confused:
My original post was...
DirectShow to play Mp3 + Select Sound Card
So...
I would like to use DirectShow (quartz.dll) to play MP3 files and have the possibility of Selecting the Sound Card.
Thanks for looking anyway :D
Re: DirectShow to play Mp3 + Select Sound Card
You may have to write it yourself.
Try searching for ICreateDevEnum and see if you can find the information to start writing or converting to VB6.
Or, you could just select the Default Audio output in Sound Dialog of the control panel.
Re: DirectShow to play Mp3 + Select Sound Card
Quote:
Originally Posted by
passel
You may have to write it yourself.
Try searching for ICreateDevEnum and see if you can find the information to start writing or converting to VB6.
I have looked at other code for DirectShow that selects the sound card but I have not managed to migrate it into the original code from Jacob Roman's.
;)
Quote:
Originally Posted by
passel
Or, you could just select the Default Audio output in Sound Dialog of the control panel.
I need to have the Default Audio Output untouched for the Main-Sound-Output and use a Second sound card as a Pre-Main-Output Monitor :D
Thanks for looking :)
Re: DirectShow to play Mp3 + Select Sound Card
Duplicate post deleted :rolleyes:
Re: DirectShow to play Mp3 + Select Sound Card
Quote:
Originally Posted by
BriansBrain
I have looked at other code for DirectShow that selects the sound card but I have not managed to migrate it into the original code from Jacob Roman's.
...
Do you have example code that selects the sound card that looks promising, but you're having trouble porting, so you can give a more specific issue to work on?
2 Attachment(s)
Re: DirectShow to play Mp3 + Select Sound Card
Quote:
Originally Posted by
passel
Do you have example code that selects the sound card that looks promising, but you're having trouble porting, so you can give a more specific issue to work on?
Here is some modified code originally from Part of the Microsoft DXSDK Code Samples.
Attachment 118357
This code works for me.
I can select a sound card to play mp3.
Pleas note sounds boards are very different in there description I have moded the code for cards I use.
You might have to play with that part of the code to make it work.
:)
2 Attachment(s)
Re: DirectShow to play Mp3 + Select Sound Card
Here is another from the Part of the Microsoft DXSDK Code Samples.
Attachment 118351
This one is very similar to Jacob Roman's code.
As it does not have a Sound Card Select either :rolleyes:
But it could be useful to mod ;)