Results 1 to 13 of 13

Thread: Playing music files.

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Playing music files.

    Does anyone have any information on how to best play a few sound file formats? I want to create a sort of mini-player for my computer, and I don't want to comp out by using something like the windows media player control. Are there some built in windows APIs I can use for playing things like wavs, mp3s, oggs, and midis, and what are the most efficient ways to play those files?

  2. #2
    Addicted Member Cimperiali's Avatar
    Join Date
    Oct 2002
    Location
    Milan, Italy, Europe
    Posts
    188

    Re: Playing music files.

    PlaySound api for wav.
    Do not know for othre kind of files, though...
    Special thanks to some wonderful people,
    such as Lothar the Great Haensler, Aaron Young,
    dr_Michael, Chris Eastwood, TheOnlyOne ClearCode....

  3. #3

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Re: Playing music files.

    ok thanks, anyone else?

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Playing music files.

    Here is an example of DirectShow. It works nicely.
    Attached Files Attached Files

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Playing music files.

    I wrote the module to that DirectShow program

    Made it to where it loads movie files as well (mpeg, avi, etc)

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Playing music files.

    I haven't tried it yet for anything other than mp3.
    It gets my mark of approval, which means that I recommend it to others.
    Also, I want to see if it requires component download. I hesitated with DirectX because i didn't think I had what was necessary. I guess sp2 set me straight.

  7. #7
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Playing music files.

    DirectX is the best when it comes to anything. Graphics, games, sounds, input, music, and networking in real time.

    Then there's OpenGL which is a lot of fun to work with. Not sure if you can use OpenAL or OpenIL or anything like those in VB. Those are for stuff other than graphics, such as audio, input, etc.

  8. #8
    Junior Member MajorPaul's Avatar
    Join Date
    Mar 2005
    Location
    Sweden
    Posts
    25

    Re: Playing music files.

    I would suggest you use FMOD.
    MajorPaul

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Playing music files.

    Does that include the Dolby Encoder? That would make it worthwhile.

  10. #10
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Playing music files.

    I did an experiment and it seems you have to intialize DirectX8 and all of that to get the videos working. Probably because it's using the backbuffer. Other than that, it's perfect for mp3's

  11. #11
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Playing music files.

    So, does it play videos or not, assuming that you do have DirectX 8 installed?

  12. #12
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Playing music files.

    Yes it does after you intialize DirectX and all of that. If you don't, it won't play at all.

  13. #13
    New Member
    Join Date
    Dec 2005
    Posts
    4

    Re: Playing music files.

    try
    http://www.wasm.ru/src/4/ufmod.zip
    archive include VB6 example

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