IAudioVolumeDuckNotification.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // -----------------------------------------
  2. // SoundScribe (TM) and related software.
  3. //
  4. // Copyright (C) 2007-2011 Vannatech
  5. // http://www.vannatech.com
  6. // All rights reserved.
  7. //
  8. // This source code is subject to the MIT License.
  9. // http://www.opensource.org/licenses/mit-license.php
  10. //
  11. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  17. // THE SOFTWARE.
  18. // -----------------------------------------
  19. using System;
  20. using System.Runtime.InteropServices;
  21. namespace Vannatech.CoreAudio.Interfaces
  22. {
  23. /// <summary>
  24. /// Used to by the system to send notifications about stream attenuation changes.
  25. /// </summary>
  26. /// <remarks>
  27. /// MSDN Reference: http://msdn.microsoft.com/en-us/library/dd371006.aspx
  28. /// </remarks>
  29. public partial interface IAudioVolumeDuckNotification
  30. {
  31. /// <summary>
  32. /// Sends a notification about a pending system ducking event.
  33. /// </summary>
  34. /// <param name="sessionId">A string containing the session instance identifier of the communications session that raises the the auto-ducking event.</param>
  35. /// <param name="activeSessionCount">The number of active communications sessions.</param>
  36. /// <returns>An HRESULT code indicating whether the operation succeeded of failed.</returns>
  37. [PreserveSig]
  38. int OnVolumeDuckNotification(
  39. [In] [MarshalAs(UnmanagedType.LPWStr)] string sessionId,
  40. [In] UInt32 activeSessionCount);
  41. /// <summary>
  42. /// Sends a notification about a pending system unducking event.
  43. /// </summary>
  44. /// <param name="sessionId">A string containing the session instance identifier of the terminating communications session that intiated the ducking.</param>
  45. /// <returns>An HRESULT code indicating whether the operation succeeded of failed.</returns>
  46. [PreserveSig]
  47. int OnVolumeUnduckNotification(
  48. [In] [MarshalAs(UnmanagedType.LPWStr)] string sessionId);
  49. }
  50. }