CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2001
    Location
    Germany
    Posts
    136

    Exclamation Play wav resource

    What shall i do that to play a wave file in the resource?
    Last edited by Hakan Bulut; January 1st, 2008 at 12:07 PM.

  2. #2
    Join Date
    Feb 2007
    Location
    Craiova, Romania
    Posts
    326

    Re: Play wav resource

    You can use DirectSound for this.
    Here's a link to get you started:http://msdn2.microsoft.com/en-us/library/ms804971.aspx.

    Once you download the DX SDK you can browse through the DirectSound samples.

  3. #3
    Join Date
    Jun 2007
    Location
    Pakistan
    Posts
    61

    Re: Play wav resource

    Or you can use thefollowing article of Code Guru written by Joerg Koening on 14 November 1998. I also used same and it works fine:

    Subject: Playing Wave Files Directly From The Resource via DirectSound

    URL: http://www.codeguru.com/cpp/g-m/mult...cle.php/c1603/

  4. #4
    Join Date
    May 2005
    Posts
    4,954

    Re: Play wav resource

    Quote Originally Posted by Hakan Bulut
    How can i do that to play a wave file in the resource?
    You can use ::PlaySound() with SND_RESOURCE.

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  5. #5
    Join Date
    Jun 2001
    Location
    Germany
    Posts
    136

    Re: Play wav resource

    Quote Originally Posted by golanshahar
    You can use ::PlaySound() with SND_RESOURCE.

    Cheers
    Thanks.. This was just the help.

  6. #6
    Join Date
    May 2005
    Posts
    4,954

    Re: Play wav resource

    You are welcome

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

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

Featured