Thread: muting sound

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    8

    muting sound

    Can you point me in the right direction, Is there an API to mute the sound? Like the sound control progam uses. Thanks.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    auxSetVolume() or waveOutSetVolume()

    You'll have to do other work to get handles to pass to those APIs, just read all the help.

    Include windows.h and link against Winmm.lib (or .a).

    gg

  3. #3
    .
    Join Date
    Nov 2003
    Posts
    307
    mixerOpen(),
    mixerGetControlDetails(),
    mixerSetControlDetails(),
    mixerClose()

    will let you mute individual sound sources or all sound. FWIW.
    Finer-grained control.

    Start here:

    http://msdn.microsoft.com/library/de..._mixeropen.asp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sound lags in multi-thread version
    By VirtualAce in forum Game Programming
    Replies: 23
    Last Post: 08-27-2008, 11:54 AM
  2. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 01:58 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. DirectSound - multiple sounds
    By Magos in forum Game Programming
    Replies: 9
    Last Post: 03-03-2004, 04:33 PM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 03:34 PM