Play mp3's on 2nd Soundcard

mr_bart_simpson
mr_bart_simpson used Ask the Experts™
on
Playing mp3 files is no problem when using the classes in the Microsoft.DirectX.AudioVideoPlayback namespace. But with that you have to use the default device. But how to play mp3's (or wma's) on another device? I tried using the Microsoft.DirectX.DirectSound namespace ( classes like Microsoft.DirectX.DirectSound.Device or Microsoft.DirectX.DirectSound.SecondaryBuffer) and it was quite easy to access the other device(s) and play _wav_ files. But I did'nt get it work to load mp3's into a buffer so that it could be played. I gues it has to be decoded to load it into the buffer, but I could not find any sample code... or is there an easier way?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello!
Try this link:

http://www.mp3-tech.org/programmer/decoding.html

I think there is something you need!
@AnnieMod
Because I am the first (and last) poster I should earn at least 1/2 of the points -> The link points to good solutions/helppages


void_main

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial