Private Function SetVolume(ByVal volLeft As System.UInt16, _ ByVal volRight As System.UInt16) As Integer Dim vol As System.UInt32 = (CType(volLeft, System.UInt32) And 65535) _ Or (CType(volRight, System.UInt32) << 16) Select Case m_type Case DeviceTypes.Wave Return NativeMethods.waveOutSetVolume(m_hwo, vol) Case DeviceTypes.Aux Return NativeMethods.auxSetVolume(m_deviceID, vol) Case DeviceTypes.Midi Return NativeMethods.midiOutSetVolume(m_hwo, vol) End Select Return 0 End Function
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question