Thread: how to control the speaker?

  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, 11:56 AM
  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, 07:55 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM