IMMEndpoint.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. using Vannatech.CoreAudio.Enumerations;
  22. namespace Vannatech.CoreAudio.Interfaces
  23. {
  24. /// <summary>
  25. /// Represents an audio endpoint device.
  26. /// </summary>
  27. public partial interface IMMEndpoint
  28. {
  29. /// <summary>
  30. /// Indicates whether the endpoint is associated with a rendering device or a capture device.
  31. /// </summary>
  32. /// <param name="dataFlow">The data-flow direction of the endpoint device.</param>
  33. /// <returns>An HRESULT code indicating whether the operation passed of failed.</returns>
  34. [PreserveSig]
  35. int GetDataFlow(
  36. [Out] [MarshalAs(UnmanagedType.I4)] out EDataFlow dataFlow);
  37. }
  38. }