class IMMDeviceEnumerator(_IUnknown): _iid_ = GUID('{A95664D2-9614-4F35-A746-DE8DB63617E6}') _methods_ = [ _COMMETHOD([], _HRESULT, 'EnumAudioEndpoints', (['in'], _DWORD, 'dataFlow'), (['in'], _DWORD, 'dwStateMask'), (['out', 'retval'], _POINTER(_POINTER(IMMDeviceCollection)), 'ppDevices')), _COMMETHOD([], _HRESULT, 'GetDefaultAudioEndpoint', (['in'], _DWORD, 'dataFlow'), (['in'], _DWORD, 'role'), (['out', 'retval'], _POINTER( _POINTER(IMMDevice)), 'ppDevices')) ]
class IMMDeviceEnumerator(comtypes.IUnknown): _iid_ = IID_IMMDeviceEnumerator _methods_ = ( _COMMETHOD([], _HRESULT, 'EnumAudioEndpoints', (['in'], _DWORD, 'dataFlow'), (['in'], _DWORD, 'dwStateMask'), (['out','retval'], _POINTER(_POINTER(IMMDeviceCollection)), 'ppDevices')), _COMMETHOD([], _HRESULT, 'GetDefaultAudioEndpoint', (['in'], _DWORD, 'dataFlow'), (['in'], _DWORD, 'role'), (['out','retval'], _POINTER(_POINTER(IMMDevice)), 'ppDevices')))
class IMMDevice(_IUnknown): _iid_ = GUID('{D666063F-1587-4E43-81F1-B948E807363F}') _methods_ = [ _COMMETHOD( [], _HRESULT, 'Activate', (['in'], _POINTER(GUID), 'iid'), (['in'], _DWORD, 'dwClsCtx'), (['in'], _POINTER(_DWORD), 'pActivationParans'), (['out', 'retval'], _POINTER( _POINTER(IAudioEndpointVolume)), 'ppInterface')), _STDMETHOD(_HRESULT, 'OpenPropertyStore', []), _STDMETHOD(_HRESULT, 'GetId', []), _STDMETHOD(_HRESULT, 'GetState', []) ] pass
class IPolicyConfigVista(_IUnknown): _iid_ = IID_IPolicyConfigVista _methods_ = (_STDMETHOD(_HRESULT, 'GetMixFormat', []), _STDMETHOD(_HRESULT, 'GetDeviceFormat', []), _STDMETHOD(_HRESULT, 'SetDeviceFormat', []), _STDMETHOD(_HRESULT, 'GetProcessingPeriod', []), _STDMETHOD(_HRESULT, 'SetProcessingPeriod', []), _STDMETHOD(_HRESULT, 'GetShareMode', []), _STDMETHOD(_HRESULT, 'SetShareMode', []), _STDMETHOD(_HRESULT, 'GetPropertyValue', []), _STDMETHOD(_HRESULT, 'SetPropertyValue', []), _COMMETHOD([], _HRESULT, 'SetDefaultEndpoint', (['in'], _PCWSTR, 'wszDeviceId'), (['in'], _DWORD, 'eRole')), _STDMETHOD(_HRESULT, 'SetEndpointVisibility', []))
class IMMDevice(comtypes.IUnknown): _iid_ = IID_IMMDevice _methods_ = ( _COMMETHOD([], _HRESULT, 'Activate', (['in'], _POINTER(_GUID), 'iid'), (['in'], _DWORD, 'dwClsCtx'), (['in'], _POINTER(_DWORD), 'pActivationParams'), (['out','retval'], _POINTER(_POINTER(IAudioEndpointVolume)), 'ppInterface')), _STDMETHOD(_HRESULT, 'OpenPropertyStore', []), _STDMETHOD(_HRESULT, 'GetId', []), _STDMETHOD(_HRESULT, 'GetState', []))
class IAudioEndpointVolume(_IUnknown): _iid_ = _GUID('{5CDF2C82-841E-4546-9722-0CF74078229A}') _methods_ = [ _COMMETHOD( [], _HRESULT, 'RegisterControlChangeNotify', (['in'], _POINTER(IAudioEndpointVolumeCallback), 'pNotify')), _COMMETHOD( [], _HRESULT, 'UnregisterControlChangeNotify', (['in'], _POINTER(IAudioEndpointVolumeCallback), 'pNotify')), _COMMETHOD( [], _HRESULT, 'GetChannelCount', (['out', 'retval'], _POINTER(_UINT), 'pnChannelCount'), ), _COMMETHOD([], _HRESULT, 'SetMasterVolumeLevel', (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'SetMasterVolumeLevelScalar', (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'GetMasterVolumeLevel', (['out', 'retval'], _POINTER(_c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'GetMasterVolumeLevelScalar', (['out', 'retval'], _POINTER(_c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'SetChannelVolumeLevel', (['in'], _UINT, 'nChannel'), (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'SetChannelVolumeLevelScalar', (['in'], _UINT, 'nChannel'), (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'GetChannelVolumeLevel', (['in'], _UINT, 'nChannel'), (['out', 'retval'], _POINTER(_c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'GetChannelVolumeLevelScalar', (['in'], _UINT, 'nChannel'), (['out', 'retval'], _POINTER(_c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'SetMute', (['in'], _BOOL, 'bMute'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'GetMute', (['out', 'retval'], _POINTER(_BOOL), 'pbMute')), _COMMETHOD( [], _HRESULT, 'GetVolumeStepInfo', (['out', 'retval'], _POINTER(_UINT), 'pnStep'), (['out', 'retval'], _POINTER(_UINT), 'pnStepCount'), ), _COMMETHOD([], _HRESULT, 'VolumeStepUp', (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'VolumeStepDown', (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD( [], _HRESULT, 'QueryHardwareSupport', (['out', 'retval'], _POINTER(_DWORD), 'pdwHardwareSupportMask')), _COMMETHOD( [], _HRESULT, 'GetVolumeRange', (['out', 'retval'], _POINTER(_c_float), 'pfLevelMinDB'), (['out', 'retval'], _POINTER(_c_float), 'pfLevelMaxDB'), (['out', 'retval'], _POINTER(_c_float), 'pfVolumeIncrementDB')), ]
class IAudioEndpointVolumeCallback(_IUnknown): _iid_ = IID_IAudioEndpointVolumeCallback _methods_ = [ _COMMETHOD([], _HRESULT, 'OnNotify', (['in'], PAUDIO_VOLUME_NOTIFICATION_DATA, 'pNotify')), ]
class IAudioEndpointVolume(comtypes.IUnknown): _iid_ = IID_IAudioEndpointVolume _methods_ = ( _STDMETHOD(_HRESULT, 'RegisterControlChangeNotify', []), _STDMETHOD(_HRESULT, 'UnregisterControlChangeNotify', []), _STDMETHOD(_HRESULT, 'GetChannelCount', []), _COMMETHOD([], _HRESULT, 'SetMasterVolumeLevel', (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'SetMasterVolumeLevelScalar', (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'GetMasterVolumeLevel', (['out','retval'], _POINTER(ctypes.c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'GetMasterVolumeLevelScalar', (['out','retval'], _POINTER(_c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'SetChannelVolumeLevel', (['in'], _DWORD, 'nChannel'), (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'SetChannelVolumeLevelScalar', (['in'], _DWORD, 'nChannel'), (['in'], _c_float, 'fLevelDB'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'GetChannelVolumeLevel', (['in'], _DWORD, 'nChannel'), (['out','retval'], _POINTER(_c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'GetChannelVolumeLevelScalar', (['in'], _DWORD, 'nChannel'), (['out','retval'], _POINTER(_c_float), 'pfLevelDB')), _COMMETHOD([], _HRESULT, 'SetMute', (['in'], _BOOL, 'bMute'), (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'GetMute', (['out','retval'], _POINTER(_BOOL), 'pbMute')), _COMMETHOD([], _HRESULT, 'GetVolumeStepInfo', (['out','retval'], _POINTER(_c_float), 'pnStep'), (['out','retval'], _POINTER(_c_float), 'pnStepCount')), _COMMETHOD([], _HRESULT, 'VolumeStepUp', (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'VolumeStepDown', (['in'], _POINTER(_GUID), 'pguidEventContext')), _COMMETHOD([], _HRESULT, 'QueryHardwareSupport', (['out','retval'], _POINTER(_DWORD), 'pdwHardwareSupportMask')), _COMMETHOD([], _HRESULT, 'GetVolumeRange', (['out','retval'], _POINTER(_c_float), 'pfMin'), (['out','retval'], _POINTER(_c_float), 'pfMax'), (['out','retval'], _POINTER(_c_float), 'pfIncr')))