annotate src/portaudio/include/pa_win_wdmks.h @ 78:7ea7031c0e5c pa_catalina

Apply patch from Tim Bunnell on PortAudio mailing list (2016-12-28, Mac 10.11 deprecation warning)
author Chris Cannam
date Wed, 30 Oct 2019 11:28:45 +0000
parents 0f2d93caa50c
children
rev   line source
Chris@63 1 #ifndef PA_WIN_WDMKS_H
Chris@63 2 #define PA_WIN_WDMKS_H
Chris@63 3 /*
Chris@63 4 * $Id: pa_win_wdmks.h 1812 2012-02-14 09:32:57Z robiwan $
Chris@63 5 * PortAudio Portable Real-Time Audio Library
Chris@63 6 * WDM/KS specific extensions
Chris@63 7 *
Chris@63 8 * Copyright (c) 1999-2007 Ross Bencina and Phil Burk
Chris@63 9 *
Chris@63 10 * Permission is hereby granted, free of charge, to any person obtaining
Chris@63 11 * a copy of this software and associated documentation files
Chris@63 12 * (the "Software"), to deal in the Software without restriction,
Chris@63 13 * including without limitation the rights to use, copy, modify, merge,
Chris@63 14 * publish, distribute, sublicense, and/or sell copies of the Software,
Chris@63 15 * and to permit persons to whom the Software is furnished to do so,
Chris@63 16 * subject to the following conditions:
Chris@63 17 *
Chris@63 18 * The above copyright notice and this permission notice shall be
Chris@63 19 * included in all copies or substantial portions of the Software.
Chris@63 20 *
Chris@63 21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Chris@63 22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Chris@63 23 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Chris@63 24 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
Chris@63 25 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Chris@63 26 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Chris@63 27 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@63 28 */
Chris@63 29
Chris@63 30 /*
Chris@63 31 * The text above constitutes the entire PortAudio license; however,
Chris@63 32 * the PortAudio community also makes the following non-binding requests:
Chris@63 33 *
Chris@63 34 * Any person wishing to distribute modifications to the Software is
Chris@63 35 * requested to send the modifications to the original developer so that
Chris@63 36 * they can be incorporated into the canonical version. It is also
Chris@63 37 * requested that these non-binding requests be included along with the
Chris@63 38 * license above.
Chris@63 39 */
Chris@63 40
Chris@63 41 /** @file
Chris@63 42 @ingroup public_header
Chris@63 43 @brief WDM Kernel Streaming-specific PortAudio API extension header file.
Chris@63 44 */
Chris@63 45
Chris@63 46
Chris@63 47 #include "portaudio.h"
Chris@63 48
Chris@63 49 #include <windows.h>
Chris@63 50
Chris@63 51 #ifdef __cplusplus
Chris@63 52 extern "C"
Chris@63 53 {
Chris@63 54 #endif /* __cplusplus */
Chris@63 55 typedef struct PaWinWDMKSInfo{
Chris@63 56 unsigned long size; /**< sizeof(PaWinWDMKSInfo) */
Chris@63 57 PaHostApiTypeId hostApiType; /**< paWDMKS */
Chris@63 58 unsigned long version; /**< 1 */
Chris@63 59
Chris@63 60 /* The number of packets to use for WaveCyclic devices, range is [2, 8]. Set to zero for default value of 2. */
Chris@63 61 unsigned noOfPackets;
Chris@63 62 } PaWinWDMKSInfo;
Chris@63 63
Chris@63 64 typedef enum PaWDMKSType
Chris@63 65 {
Chris@63 66 Type_kNotUsed,
Chris@63 67 Type_kWaveCyclic,
Chris@63 68 Type_kWaveRT,
Chris@63 69 Type_kCnt,
Chris@63 70 } PaWDMKSType;
Chris@63 71
Chris@63 72 typedef enum PaWDMKSSubType
Chris@63 73 {
Chris@63 74 SubType_kUnknown,
Chris@63 75 SubType_kNotification,
Chris@63 76 SubType_kPolled,
Chris@63 77 SubType_kCnt,
Chris@63 78 } PaWDMKSSubType;
Chris@63 79
Chris@63 80 typedef struct PaWinWDMKSDeviceInfo {
Chris@63 81 wchar_t filterPath[MAX_PATH]; /**< KS filter path in Unicode! */
Chris@63 82 wchar_t topologyPath[MAX_PATH]; /**< Topology filter path in Unicode! */
Chris@63 83 PaWDMKSType streamingType;
Chris@63 84 GUID deviceProductGuid; /**< The product GUID of the device (if supported) */
Chris@63 85 } PaWinWDMKSDeviceInfo;
Chris@63 86
Chris@63 87 typedef struct PaWDMKSDirectionSpecificStreamInfo
Chris@63 88 {
Chris@63 89 PaDeviceIndex device;
Chris@63 90 unsigned channels; /**< No of channels the device is opened with */
Chris@63 91 unsigned framesPerHostBuffer; /**< No of frames of the device buffer */
Chris@63 92 int endpointPinId; /**< Endpoint pin ID (on topology filter if topologyName is not empty) */
Chris@63 93 int muxNodeId; /**< Only valid for input */
Chris@63 94 PaWDMKSSubType streamingSubType; /**< Not known until device is opened for streaming */
Chris@63 95 } PaWDMKSDirectionSpecificStreamInfo;
Chris@63 96
Chris@63 97 typedef struct PaWDMKSSpecificStreamInfo {
Chris@63 98 PaWDMKSDirectionSpecificStreamInfo input;
Chris@63 99 PaWDMKSDirectionSpecificStreamInfo output;
Chris@63 100 } PaWDMKSSpecificStreamInfo;
Chris@63 101
Chris@63 102 #ifdef __cplusplus
Chris@63 103 }
Chris@63 104 #endif /* __cplusplus */
Chris@63 105
Chris@63 106 #endif /* PA_WIN_DS_H */