how to control the speaker?

This is a discussion on how to control the speaker? within the C++ Programming forums, part of the General Programming Boards category; how to play a *.wav file according to its byte range?? please help...thank you...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    117

    how to control the speaker?

    how to play a *.wav file according to its byte range??

    please help...thank you

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    It depends on your operating system. (There is nothing in ANSI/ISO C++ for playing sounds.)

    For Windows, include windows.h and use PlaySound(MyFile.wav)

    I didn't understand "according to its byte range"

    [EDIT]
    PlaySound() only works with external speakers. It won't work with the little internal PC speaker.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 12:56 PM
  2. line number on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2008, 07:58 AM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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