Results 1 to 11 of 11

Thread: playing MP3 by DX

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    playing MP3 by DX

    HI guys ,
    I know how to play wav files using DirectX but I need to know how to play MP3 by DirectX.????

    Regards

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Use DirectShow. Or, better yet, use the excellent FMOD:
    http://www.fmod.org/.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    thanx anyway, but I want to code that myself.
    any idea

  4. #4

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    if more thing - If I want to use FMOD with VB.NET , does it support that ?
    thanx a lot

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Yes it does, you have to run fmod.bas through the VB6->VB.NET convertor though.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    very grateful

  7. #7
    Member Keger's Avatar
    Join Date
    Jun 2001
    Location
    Detroit (Hell)
    Posts
    57
    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

  8. #8

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    wait wait Mr.Sastraxi
    Did you say "Use DirectShow"??? Isn't this do with Graphics.I'm messing up
    If so , why I don't use DirectSound???

  9. #9
    Member Keger's Avatar
    Join Date
    Jun 2001
    Location
    Detroit (Hell)
    Posts
    57
    Filter graphics
    Easy but not necessaly the best...
    I use it because it works with almost everything

  10. #10
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  11. #11

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    got it . Thanx all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width