annotate src/portaudio_20140130/include/pa_win_wdmks.h @ 81:7029a4916348

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