Results 1 to 3 of 3

Thread: waveOutGetVolume & waveOutSetVolume

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Question

    Does anyone know how to use these API's?
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Guest

    Code for module

    Code:
    Declare Function waveOutSetVolume Lib "winmm.dll" (ByVal uDeviceID As Long, ByVal dwVolume As Long) As Long
    Declare Function waveOutGetVolume Lib "winmm.dll" (ByVal uDeviceID As Long, lpdwVolume As Long) As Long
    Code for a CommandButton

    Code:
    ' Get the volume
    retval = waveOutGetVolume(0, volume)
    volume = volume And &HFFFF
    
    DisplayVol = Hex(volume)
    MsgBox (DisplayVol)
    Code for another CommandButton

    Code:
    ' Set the volume to 50%
    retval = waveOutSetVolume(0, &H7FFF7FFF)

  3. #3
    Addicted Member
    Join Date
    Mar 2002
    Posts
    158
    yeaa megatron what i want to do is have 2 buttons
    1 button that will make the volume louder
    1 button that will make the volume softer

    do u understand that

    thanks
    trav

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