locked
Embedded MP3 (in resource file) playback RRS feed

  • Question

  • Hi!

    I want to embed a MP3 as a resource in VB05 and play it with DirectX. I don't want to use any coms (e.g. Media Player ActiveX control). Any suggestions?

    Alternatively, how do I playback a embedded (in the resource file) MP3 file with the Media Player ActiveX?

    Monday, July 17, 2006 1:57 AM

Answers

  • to playback media files in WMP, you can include the WMP 9/10 in your application if you want to playback media files, this can be achieved by installing the WMP SDK and adding the AX control on your form.

    Alternatively, have you looked at the Managed DirectX SDK? Alot of cool stuff in there and I believe there are examples on how to play back audio.

     

    you may want to check out this article:

    http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning8/default.aspx

     

    Monday, July 17, 2006 2:03 AM
    Moderator

All replies

  • to playback media files in WMP, you can include the WMP 9/10 in your application if you want to playback media files, this can be achieved by installing the WMP SDK and adding the AX control on your form.

    Alternatively, have you looked at the Managed DirectX SDK? Alot of cool stuff in there and I believe there are examples on how to play back audio.

     

    you may want to check out this article:

    http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning8/default.aspx

     

    Monday, July 17, 2006 2:03 AM
    Moderator
  • Thank you! I have DL'ed the sample application for VB and it seems like what I need. I'll try it out.
    Monday, July 17, 2006 2:28 AM