Results 1 to 3 of 3

Thread: disaple sound card

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2011
    Posts
    16

    Lightbulb disaple sound card

    hi every 1

    can any 1 help me

    i have windows app i want to disaple the sound card and enable the sound card by using command button

    thank you

  2. #2
    Junior Member
    Join Date
    Jul 2010
    Posts
    24

    Re: disaple sound card

    no one to answer u diff question

    u need prof to do that

  3. #3
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    629

    Re: disaple sound card

    I am pretty sure disabling the sound card would be a bad thing, it is heading towards making a virus. If you mean muting the volume, use the waveOutSetVolume:
    Code:
    Public Declare Function waveOutSetVolume Lib "coredll.dll" (ByVal device As IntPtr, ByVal volume As Integer) As Integer
    (taken from PInvoke.net)

    Where the volume is a bundle of two shorts, which can also be seen as this:
    Code:
    Public Structure volume
        Public left As Short
        Public right As Short
    End Structure
    Public Declare Function waveOutSetVolume Lib "coredll.dll" (ByVal device As IntPtr, ByVal volume As volume) As Integer
    Code:
    Dim rval As Integer = waveOutSetVolume(0, 0)
    Mutes the volume.

    For enabling/disabling take a look at this post (in c++)
    http://stackoverflow.com/questions/1...disable-device

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width