Example code for threads and sound

This is a discussion on Example code for threads and sound within the C++ Programming forums, part of the General Programming Boards category; Does anyone know where I can see some sample code for the functions PlaySound(); and BeginThredex(); ? I haven't been ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    38

    Example code for threads and sound

    Does anyone know where I can see some sample code for the functions PlaySound(); and BeginThredex(); ? I haven't been able to figure them out yet ... and I would appreciate any source I can get to look at. Thanks.

  2. #2
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    try searching the board, particuarlly the C++ board. I bet you can find an example there, if not say so and I'm sure someone will show you.

    kermi3
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    That's just plain lazy. You can find all of that off google, or better yet search the board! Be sure to spell them correctly, too: beginthreadex and CreateThread...
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 12:58 AM
  2. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 11:38 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. DirectSound - multiple sounds
    By Magos in forum Game Programming
    Replies: 9
    Last Post: 03-03-2004, 03:33 PM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 02:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21