pa_win_wdmks_utils.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef PA_WIN_WDMKS_UTILS_H
  2. #define PA_WIN_WDMKS_UTILS_H
  3. /*
  4. * PortAudio Portable Real-Time Audio Library
  5. * Windows WDM KS utilities
  6. *
  7. * Copyright (c) 1999 - 2007 Ross Bencina, Andrew Baldwin
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining
  10. * a copy of this software and associated documentation files
  11. * (the "Software"), to deal in the Software without restriction,
  12. * including without limitation the rights to use, copy, modify, merge,
  13. * publish, distribute, sublicense, and/or sell copies of the Software,
  14. * and to permit persons to whom the Software is furnished to do so,
  15. * subject to the following conditions:
  16. *
  17. * The above copyright notice and this permission notice shall be
  18. * included in all copies or substantial portions of the Software.
  19. *
  20. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
  24. * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  25. * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. */
  28. /*
  29. * The text above constitutes the entire PortAudio license; however,
  30. * the PortAudio community also makes the following non-binding requests:
  31. *
  32. * Any person wishing to distribute modifications to the Software is
  33. * requested to send the modifications to the original developer so that
  34. * they can be incorporated into the canonical version. It is also
  35. * requested that these non-binding requests be included along with the
  36. * license above.
  37. */
  38. /** @file
  39. @brief Utilities for working with the Windows WDM KS API
  40. */
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. /**
  45. Query for the maximum number of channels supported by any pin of the
  46. specified device. Returns 0 if the query fails for any reason.
  47. @param wcharDevicePath A system level PnP interface path, supplied as a WCHAR unicode string.
  48. Declard as void* to avoid introducing a dependency on wchar_t here.
  49. @param isInput A flag specifying whether to query for input (non-zero) or output (zero) channels.
  50. */
  51. int PaWin_WDMKS_QueryFilterMaximumChannelCount( void *wcharDevicePath, int isInput );
  52. #ifdef __cplusplus
  53. }
  54. #endif /* __cplusplus */
  55. #endif /* PA_WIN_WDMKS_UTILS_H */