muting sound

This is a discussion on muting sound within the Windows Programming forums, part of the Platform Specific Boards category; Can you point me in the right direction, Is there an API to mute the sound? Like the sound control ...

  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,662
    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, 12:58 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 11:38 AM
  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