HRESULT GetVolumeStepInfo(out uint pnStep, out uint pnStepCount) HRESULT SetMute(bool bMute, ref Guid pguidEventContext) HRESULT GetChannelVolumeLevelScalar(uint nChannel, out float pfLevel) HRESULT GetChannelVolumeLevel(uint nChannel, out float pfLevelDB) HRESULT SetChannelVolumeLevelScalar(uint nChannel, float fLevel, ref Guid pguidEventContext) HRESULT SetChannelVolumeLevel(uint nChannel, float fLevelDB, ref Guid pguidEventContext) HRESULT GetMasterVolumeLevelScalar(out float pfLevel) HRESULT GetMasterVolumeLevel(out float pfLevelDB) HRESULT SetMasterVolumeLevelScalar(float fLevel, ref Guid pguidEventContext) HRESULT SetMasterVolumeLevel(float fLevelDB, ref Guid pguidEventContext) HRESULT GetChannelCount(out uint pnChannelCount) HRESULT UnregisterControlChangeNotify(IAudioEndpointVolumeCallback pNotify) HRESULT RegisterControlChangeNotify(IAudioEndpointVolumeCallback pNotify) Public IntPtr punkVal // punkVal (interface pointer) Public IntPtr pwszVal // Unicode string pointer Public IntPtr pszVal // Ansi string pointer Public IntPtr pclsidVal // GUID ID pointer Public PROPERTYKEY(Guid InputId, UInt32 InputPid) HRESULT GetDataFlow(out EDataFlow pDataFlow) HRESULT OnPropertyValueChanged(string pwstrDeviceId, ref PROPERTYKEY key) HRESULT OnDefaultDeviceChanged(EDataFlow flow, ERole role, string pwstrDefaultDeviceId) HRESULT OnDeviceRemoved(string pwstrDeviceId) HRESULT OnDeviceAdded(string pwstrDeviceId) HRESULT OnDeviceStateChanged(string pwstrDeviceId, int dwNewState) HRESULT OpenPropertyStore(int stgmAccess, out IPropertyStore ppProperties) HRESULT Activate(ref Guid iid, int dwClsCtx, IntPtr pActivationParams, out IntPtr ppInterface) HRESULT Activate(ref Guid iid, int dwClsCtx, ref PROPVARIANT pActivationParams, out IntPtr ppInterface) HRESULT Item(uint nDevice, out IMMDevice ppDevice) Public const int DEVICE_STATEMASK_ALL = 0x0000000f Public const int DEVICE_STATE_UNPLUGGED = 0x00000008 Public const int DEVICE_STATE_NOTPRESENT = 0x00000004 Public const int DEVICE_STATE_DISABLED = 0x00000002 Public const int DEVICE_STATE_ACTIVE = 0x00000001 HRESULT UnregisterEndpointNotificationCallback(IMMNotificationClient pClient) HRESULT RegisterEndpointNotificationCallback(IMMNotificationClient pClient) HRESULT GetDevice(string pwstrId, out IMMDevice ppDevice) HRESULT GetDefaultAudioEndpoint(EDataFlow dataFlow, ERole role, out IMMDevice ppEndpoint) HRESULT EnumAudioEndpoints(EDataFlow dataFlow, int dwStateMask, out IMMDeviceCollection ppDevices) Public const int STGM_READWRITE = 0x00000002 Public const int STGM_WRITE = 0x00000001 HRESULT SetValue( ref PROPERTYKEY key, ref PROPVARIANT pv) HRESULT GetValue( ref PROPERTYKEY key, out PROPVARIANT pv) HRESULT GetAt( uint propertyIndex, out PROPERTYKEY key) HRESULT GetCount( out uint propert圜ount) Here is the code to get the available audio devices in the system : // At beginningĮ_NOINTERFACE = unchecked((int)0x80004002), But I want to know the default audio devices from those devices and that should give as a separate option as "system default" in my WPF audio selection settings. I have a WPF application, where my application have a settings that can show the list of available audio devices in the system.
0 Comments
Leave a Reply. |