00001 #ifndef PA_WIN_WDMKS_H 00002 #define PA_WIN_WDMKS_H 00003 /* 00004 * $Id: pa_win_wdmks.h 1812 2012-02-14 09:32:57Z robiwan $ 00005 * PortAudio Portable Real-Time Audio Library 00006 * WDM/KS specific extensions 00007 * 00008 * Copyright (c) 1999-2007 Ross Bencina and Phil Burk 00009 * 00010 * Permission is hereby granted, free of charge, to any person obtaining 00011 * a copy of this software and associated documentation files 00012 * (the "Software"), to deal in the Software without restriction, 00013 * including without limitation the rights to use, copy, modify, merge, 00014 * publish, distribute, sublicense, and/or sell copies of the Software, 00015 * and to permit persons to whom the Software is furnished to do so, 00016 * subject to the following conditions: 00017 * 00018 * The above copyright notice and this permission notice shall be 00019 * included in all copies or substantial portions of the Software. 00020 * 00021 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00022 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00023 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00024 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 00025 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 00026 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 00027 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00028 */ 00029 00030 /* 00031 * The text above constitutes the entire PortAudio license; however, 00032 * the PortAudio community also makes the following non-binding requests: 00033 * 00034 * Any person wishing to distribute modifications to the Software is 00035 * requested to send the modifications to the original developer so that 00036 * they can be incorporated into the canonical version. It is also 00037 * requested that these non-binding requests be included along with the 00038 * license above. 00039 */ 00040 00047 #include "portaudio.h" 00048 00049 #include <windows.h> 00050 00051 #ifdef __cplusplus 00052 extern "C" 00053 { 00054 #endif /* __cplusplus */ 00055 typedef struct PaWinWDMKSInfo{ 00056 unsigned long size; 00057 PaHostApiTypeId hostApiType; 00058 unsigned long version; 00060 /* The number of packets to use for WaveCyclic devices, range is [2, 8]. Set to zero for default value of 2. */ 00061 unsigned noOfPackets; 00062 } PaWinWDMKSInfo; 00063 00064 typedef enum PaWDMKSType 00065 { 00066 Type_kNotUsed, 00067 Type_kWaveCyclic, 00068 Type_kWaveRT, 00069 Type_kCnt, 00070 } PaWDMKSType; 00071 00072 typedef enum PaWDMKSSubType 00073 { 00074 SubType_kUnknown, 00075 SubType_kNotification, 00076 SubType_kPolled, 00077 SubType_kCnt, 00078 } PaWDMKSSubType; 00079 00080 typedef struct PaWinWDMKSDeviceInfo { 00081 wchar_t filterPath[MAX_PATH]; 00082 wchar_t topologyPath[MAX_PATH]; 00083 PaWDMKSType streamingType; 00084 GUID deviceProductGuid; 00085 } PaWinWDMKSDeviceInfo; 00086 00087 typedef struct PaWDMKSDirectionSpecificStreamInfo 00088 { 00089 PaDeviceIndex device; 00090 unsigned channels; 00091 unsigned framesPerHostBuffer; 00092 int endpointPinId; 00093 int muxNodeId; 00094 PaWDMKSSubType streamingSubType; 00095 } PaWDMKSDirectionSpecificStreamInfo; 00096 00097 typedef struct PaWDMKSSpecificStreamInfo { 00098 PaWDMKSDirectionSpecificStreamInfo input; 00099 PaWDMKSDirectionSpecificStreamInfo output; 00100 } PaWDMKSSpecificStreamInfo; 00101 00102 #ifdef __cplusplus 00103 } 00104 #endif /* __cplusplus */ 00105 00106 #endif /* PA_WIN_DS_H */