HI guys ,
I know how to play wav files using DirectX but I need to know how to play MP3 by DirectX.????
Regards:)
Printable View
HI guys ,
I know how to play wav files using DirectX but I need to know how to play MP3 by DirectX.????
Regards:)
Use DirectShow. Or, better yet, use the excellent FMOD:
http://www.fmod.org/.
thanx anyway, but I want to code that myself.
any idea;)
if more thing:D - If I want to use FMOD with VB.NET , does it support that ?
thanx a lot :)
Yes it does, you have to run fmod.bas through the VB6->VB.NET convertor though.
very grateful:)
Reference the DX activemovie control.
code:-----------------------------------------------------------------------------
Option Explicit
Private BackgroundC As FilgraphManager
Private BackgroundA As IBasicAudio
Set BackgroundC = New FilgraphManager
Set BackgroundA = BackgroundC
BackgroundC.RenderFile (App.Path & "\night.mp3")
BackgroundA.Volume = Slider1.Value
'Options
BackgroundC.Run
BackgroundA.Volume = Slider1.Value ' 0 to -10000
' 0 is max (WEIRD)
BackgroundC.Stop
wait wait Mr.Sastraxi
Did you say "Use DirectShow"???:rolleyes: Isn't this do with Graphics.I'm messing up:(
If so , why I don't use DirectSound???
Filter graphics
Easy but not necessaly the best...
I use it because it works with almost everything
DirectSound doesn't utilise the DirectShow filters used by Media Player to play Mp3 and Wma files (or maybe OGG, AAC files with downloaded filters). Using DirectShow will do this, but I find FMod to be 'lighter' and more responsive.
got it . Thanx all:)