/* LICENSE ------- Copyright (C) 2007-2010 Ray Molenkamp This source code is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this source code or the software it produces. Permission is granted to anyone to use this source code for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this source code must not be misrepresented; you must not claim that you wrote the original source code. If you use this source code in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original source code. 3. This notice may not be removed or altered from any source distribution. */ using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace CoreAudioApi.Interfaces { [Guid("5CDF2C82-841E-4546-9722-0CF74078229A"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IAudioEndpointVolume { [PreserveSig] int RegisterControlChangeNotify(IAudioEndpointVolumeCallback pNotify); [PreserveSig] int UnregisterControlChangeNotify(IAudioEndpointVolumeCallback pNotify); [PreserveSig] int GetChannelCount(out int pnChannelCount); [PreserveSig] int SetMasterVolumeLevel(float fLevelDB, Guid pguidEventContext); [PreserveSig] int SetMasterVolumeLevelScalar(float fLevel, Guid pguidEventContext); [PreserveSig] int GetMasterVolumeLevel(out float pfLevelDB); [PreserveSig] int GetMasterVolumeLevelScalar(out float pfLevel); [PreserveSig] int SetChannelVolumeLevel(uint nChannel, float fLevelDB, Guid pguidEventContext); [PreserveSig] int SetChannelVolumeLevelScalar(uint nChannel, float fLevel, Guid pguidEventContext); [PreserveSig] int GetChannelVolumeLevel(uint nChannel, out float pfLevelDB); [PreserveSig] int GetChannelVolumeLevelScalar(uint nChannel, out float pfLevel); [PreserveSig] int SetMute([MarshalAs(UnmanagedType.Bool)] Boolean bMute, Guid pguidEventContext); [PreserveSig] int GetMute(out bool pbMute); [PreserveSig] int GetVolumeStepInfo(out uint pnStep, out uint pnStepCount); [PreserveSig] int VolumeStepUp(Guid pguidEventContext); [PreserveSig] int VolumeStepDown(Guid pguidEventContext); [PreserveSig] int QueryHardwareSupport(out uint pdwHardwareSupportMask); [PreserveSig] int GetVolumeRange(out float pflVolumeMindB, out float pflVolumeMaxdB, out float pflVolumeIncrementdB); } }