annotate win64-msvc/include/pa_win_wdmks.h @ 130:1c067f014d80

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