Question Which audio playback is better?

J. Scott Elblein

Well-known member
Joined
Dec 14, 2006
Messages
166
Location
Chicago
Programming Experience
10+
I am playing a small mp3 upon program startup, and I have 2 working versions of playing an mp3, but I'd like to know which is better to use in terms of less end user problems (errors, installing extra components in my installer, conflicts, older OS's, etc.)?

the directx version? i.e.:

VB.NET:
        Dim objAudio As Audio

        objAudio = New Audio(Application.StartupPath & "\intro.mp3", True)
        objAudio.Play()

or the COM Windows Media Player version, where I add the control to the form, make it invisible, and then use:

VB.NET:
Me.AxWindowsMediaPlayer1.URL = Application.StartupPath & "\intro.mp3"
 
When you use the 'Dim objAudio As Audio' what exactly is the 'Audio' class? What I mean is: Is it a separate dll that you use (like the AxWindowsMediaPlayer one), or is it a class that you have added to the project and have access to source code?
 
Hi

It's part of DirectX. I added references to both Microsoft.DirectX and Microsoft.DirectX.AudioVideoPlayback

I wrote a basic version of my own, then while troubleshooting came a cross a nice class already written on here by a poster named Cheetah, (found by searching for "mp3"), so I'm using that instead now, but still curious as to my original question for future reference.

btw, I think Cheetah's original problem in his post never got answered, lol.
 
Back
Top