Browse Source

asio: remove unnecessary ASIO SDK files

These files should be obtained directly from Steinberg.
mr/7559751/HEAD
Phil Burk 2 months ago
parent
commit
ab665735ad
42 changed files with 0 additions and 8450 deletions
  1. BIN
      src/hostapi/asio/ASIOSDK/ASIO SDK 2.3.pdf
  2. BIN
      src/hostapi/asio/ASIOSDK/Steinberg ASIO Licensing Agreement.pdf
  3. 0
    41
      src/hostapi/asio/ASIOSDK/asio/asio.dsw
  4. BIN
      src/hostapi/asio/ASIOSDK/asio/asio.opt
  5. 0
    12
      src/hostapi/asio/ASIOSDK/changes.txt
  6. 0
    257
      src/hostapi/asio/ASIOSDK/common/asio.cpp
  7. 0
    1070
      src/hostapi/asio/ASIOSDK/common/asio.h
  8. 0
    139
      src/hostapi/asio/ASIOSDK/common/asiodrvr.cpp
  9. 0
    76
      src/hostapi/asio/ASIOSDK/common/asiodrvr.h
  10. 0
    82
      src/hostapi/asio/ASIOSDK/common/asiosys.h
  11. 0
    202
      src/hostapi/asio/ASIOSDK/common/combase.cpp
  12. 0
    284
      src/hostapi/asio/ASIOSDK/common/combase.h
  13. 0
    14
      src/hostapi/asio/ASIOSDK/common/debugmessage.cpp
  14. 0
    323
      src/hostapi/asio/ASIOSDK/common/dllentry.cpp
  15. 0
    37
      src/hostapi/asio/ASIOSDK/common/iasiodrv.h
  16. 0
    332
      src/hostapi/asio/ASIOSDK/common/register.cpp
  17. 0
    326
      src/hostapi/asio/ASIOSDK/common/wxdebug.h
  18. 0
    9
      src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample.def
  19. 0
    23
      src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample.txt
  20. 0
    151
      src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample/asiosample.dsp
  21. 0
    629
      src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample/asiosample.vcproj
  22. 0
    660
      src/hostapi/asio/ASIOSDK/driver/asiosample/asiosmpl.cpp
  23. 0
    148
      src/hostapi/asio/ASIOSDK/driver/asiosample/asiosmpl.h
  24. 0
    15
      src/hostapi/asio/ASIOSDK/driver/asiosample/macnanosecs.cpp
  25. 0
    52
      src/hostapi/asio/ASIOSDK/driver/asiosample/mactimer.cpp
  26. 0
    6
      src/hostapi/asio/ASIOSDK/driver/asiosample/makesamp.cpp
  27. 0
    55
      src/hostapi/asio/ASIOSDK/driver/asiosample/wintimer.cpp
  28. 0
    859
      src/hostapi/asio/ASIOSDK/host/ASIOConvertSamples.cpp
  29. 0
    62
      src/hostapi/asio/ASIOSDK/host/ASIOConvertSamples.h
  30. 0
    186
      src/hostapi/asio/ASIOSDK/host/asiodrivers.cpp
  31. 0
    41
      src/hostapi/asio/ASIOSDK/host/asiodrivers.h
  32. 0
    38
      src/hostapi/asio/ASIOSDK/host/ginclude.h
  33. 0
    342
      src/hostapi/asio/ASIOSDK/host/mac/asioshlib.cpp
  34. 0
    349
      src/hostapi/asio/ASIOSDK/host/mac/codefragments.cpp
  35. 0
    30
      src/hostapi/asio/ASIOSDK/host/mac/codefragments.hpp
  36. 0
    268
      src/hostapi/asio/ASIOSDK/host/pc/asiolist.cpp
  37. 0
    46
      src/hostapi/asio/ASIOSDK/host/pc/asiolist.h
  38. 0
    526
      src/hostapi/asio/ASIOSDK/host/sample/hostsample.cpp
  39. 0
    134
      src/hostapi/asio/ASIOSDK/host/sample/hostsample.dsp
  40. 0
    571
      src/hostapi/asio/ASIOSDK/host/sample/hostsample.vcproj
  41. 0
    55
      src/hostapi/asio/ASIOSDK/readme.txt
  42. BIN
      src/hostapi/asio/asiosdk2.3.zip

BIN
src/hostapi/asio/ASIOSDK/ASIO SDK 2.3.pdf View File


BIN
src/hostapi/asio/ASIOSDK/Steinberg ASIO Licensing Agreement.pdf View File


+ 0
- 41
src/hostapi/asio/ASIOSDK/asio/asio.dsw View File

@@ -1,41 +0,0 @@
1
-Microsoft Developer Studio Workspace File, Format Version 6.00
2
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3
-
4
-###############################################################################
5
-
6
-Project: "asiosample"="..\driver\asiosample\asiosample\asiosample.dsp" - Package Owner=<4>
7
-
8
-Package=<5>
9
-{{{
10
-}}}
11
-
12
-Package=<4>
13
-{{{
14
-}}}
15
-
16
-###############################################################################
17
-
18
-Project: "hostsample"="..\host\sample\hostsample.dsp" - Package Owner=<4>
19
-
20
-Package=<5>
21
-{{{
22
-}}}
23
-
24
-Package=<4>
25
-{{{
26
-}}}
27
-
28
-###############################################################################
29
-
30
-Global:
31
-
32
-Package=<5>
33
-{{{
34
-}}}
35
-
36
-Package=<3>
37
-{{{
38
-}}}
39
-
40
-###############################################################################
41
-

BIN
src/hostapi/asio/ASIOSDK/asio/asio.opt View File


+ 0
- 12
src/hostapi/asio/ASIOSDK/changes.txt View File

@@ -1,12 +0,0 @@
1
-Changes in ASIO 2.3 since ASIO 2.2
2
-- added host queries to detect the driver's buffering and drop-out detection capabilities
3
-- some additional documentation on MMCSS; see page 46 of 'ASIO SDK 2.3.pdf'
4
-- dropped support for Mac OS 8 and 9
5
-
6
-Changes in ASIO 2.2 since ASIO 2.1
7
-- added support for Windows 64 bit
8
-
9
-Changes in ASIO 2.1 since ASIO 2.0
10
-- Sony DSD support added
11
-- fixed Windows registry sample to HKEY_LOCAL_MACHINE
12
-- fixed a definition problem for input monitoring

+ 0
- 257
src/hostapi/asio/ASIOSDK/common/asio.cpp View File

@@ -1,257 +0,0 @@
1
-/*
2
-	Steinberg Audio Stream I/O API
3
-	(c) 1996, Steinberg Soft- und Hardware GmbH
4
-
5
-	asio.cpp
6
-	
7
-	asio functions entries which translate the
8
-	asio interface to the asiodrvr class methods
9
-*/ 
10
-	
11
-#include <string.h>
12
-#include "asiosys.h"		// platform definition
13
-#include "asio.h"
14
-
15
-#if MAC
16
-#include "asiodrvr.h"
17
-
18
-#pragma export on
19
-
20
-AsioDriver *theAsioDriver = 0;
21
-
22
-extern "C"
23
-{
24
-
25
-long main()
26
-{
27
-	return 'ASIO';
28
-}
29
-
30
-#elif WINDOWS
31
-
32
-#include "windows.h"
33
-#include "iasiodrv.h"
34
-#include "asiodrivers.h"
35
-
36
-IASIO *theAsioDriver = 0;
37
-extern AsioDrivers *asioDrivers;
38
-
39
-#elif SGI || SUN || BEOS || LINUX
40
-#include "asiodrvr.h"
41
-static AsioDriver *theAsioDriver = 0;
42
-#endif
43
-
44
-//-----------------------------------------------------------------------------------------------------
45
-ASIOError ASIOInit(ASIODriverInfo *info)
46
-{
47
-#if MAC || SGI || SUN || BEOS || LINUX
48
-	if(theAsioDriver)
49
-	{
50
-		delete theAsioDriver;
51
-		theAsioDriver = 0;
52
-	}		
53
-	info->driverVersion = 0;
54
-	strcpy(info->name, "No ASIO Driver");
55
-	theAsioDriver = getDriver();
56
-	if(!theAsioDriver)
57
-	{
58
-		strcpy(info->errorMessage, "Not enough memory for the ASIO driver!"); 
59
-		return ASE_NotPresent;
60
-	}
61
-	if(!theAsioDriver->init(info->sysRef))
62
-	{
63
-		theAsioDriver->getErrorMessage(info->errorMessage);
64
-		delete theAsioDriver;
65
-		theAsioDriver = 0;
66
-		return ASE_NotPresent;
67
-	}
68
-	strcpy(info->errorMessage, "No ASIO Driver Error");
69
-	theAsioDriver->getDriverName(info->name);
70
-	info->driverVersion = theAsioDriver->getDriverVersion();
71
-	return ASE_OK;
72
-
73
-#else
74
-
75
-	info->driverVersion = 0;
76
-	strcpy(info->name, "No ASIO Driver");
77
-	if(theAsioDriver)	// must be loaded!
78
-	{
79
-		if(!theAsioDriver->init(info->sysRef))
80
-		{
81
-			theAsioDriver->getErrorMessage(info->errorMessage);
82
-			theAsioDriver = 0;
83
-			return ASE_NotPresent;
84
-		}		
85
-
86
-		strcpy(info->errorMessage, "No ASIO Driver Error");
87
-		theAsioDriver->getDriverName(info->name);
88
-		info->driverVersion = theAsioDriver->getDriverVersion();
89
-		return ASE_OK;
90
-	}
91
-	return ASE_NotPresent;
92
-
93
-#endif	// !MAC
94
-}
95
-
96
-ASIOError ASIOExit(void)
97
-{
98
-	if(theAsioDriver)
99
-	{
100
-#if WINDOWS
101
-		asioDrivers->removeCurrentDriver();
102
-#else
103
-		delete theAsioDriver;
104
-#endif
105
-	}		
106
-	theAsioDriver = 0;
107
-	return ASE_OK;
108
-}
109
-
110
-ASIOError ASIOStart(void)
111
-{
112
-	if(!theAsioDriver)
113
-		return ASE_NotPresent;
114
-	return theAsioDriver->start();
115
-}
116
-
117
-ASIOError ASIOStop(void)
118
-{
119
-	if(!theAsioDriver)
120
-		return ASE_NotPresent;
121
-	return theAsioDriver->stop();
122
-}
123
-
124
-ASIOError ASIOGetChannels(long *numInputChannels, long *numOutputChannels)
125
-{
126
-	if(!theAsioDriver)
127
-	{
128
-		*numInputChannels = *numOutputChannels = 0;
129
-		return ASE_NotPresent;
130
-	}
131
-	return theAsioDriver->getChannels(numInputChannels, numOutputChannels);
132
-}
133
-
134
-ASIOError ASIOGetLatencies(long *inputLatency, long *outputLatency)
135
-{
136
-	if(!theAsioDriver)
137
-	{
138
-		*inputLatency = *outputLatency = 0;
139
-		return ASE_NotPresent;
140
-	}
141
-	return theAsioDriver->getLatencies(inputLatency, outputLatency);
142
-}
143
-
144
-ASIOError ASIOGetBufferSize(long *minSize, long *maxSize, long *preferredSize, long *granularity)
145
-{
146
-	if(!theAsioDriver)
147
-	{
148
-		*minSize = *maxSize = *preferredSize = *granularity = 0;
149
-		return ASE_NotPresent;
150
-	}
151
-	return theAsioDriver->getBufferSize(minSize, maxSize, preferredSize, granularity);
152
-}
153
-
154
-ASIOError ASIOCanSampleRate(ASIOSampleRate sampleRate)
155
-{
156
-	if(!theAsioDriver)
157
-		return ASE_NotPresent;
158
-	return theAsioDriver->canSampleRate(sampleRate);
159
-}
160
-
161
-ASIOError ASIOGetSampleRate(ASIOSampleRate *currentRate)
162
-{
163
-	if(!theAsioDriver)
164
-		return ASE_NotPresent;
165
-	return theAsioDriver->getSampleRate(currentRate);
166
-}
167
-
168
-ASIOError ASIOSetSampleRate(ASIOSampleRate sampleRate)
169
-{
170
-	if(!theAsioDriver)
171
-		return ASE_NotPresent;
172
-	return theAsioDriver->setSampleRate(sampleRate);
173
-}
174
-
175
-ASIOError ASIOGetClockSources(ASIOClockSource *clocks, long *numSources)
176
-{
177
-	if(!theAsioDriver)
178
-	{
179
-		*numSources = 0;
180
-		return ASE_NotPresent;
181
-	}
182
-	return theAsioDriver->getClockSources(clocks, numSources);
183
-}
184
-
185
-ASIOError ASIOSetClockSource(long reference)
186
-{
187
-	if(!theAsioDriver)
188
-		return ASE_NotPresent;
189
-	return theAsioDriver->setClockSource(reference);
190
-}
191
-
192
-ASIOError ASIOGetSamplePosition(ASIOSamples *sPos, ASIOTimeStamp *tStamp)
193
-{
194
-	if(!theAsioDriver)
195
-		return ASE_NotPresent;
196
-	return theAsioDriver->getSamplePosition(sPos, tStamp);
197
-}
198
-
199
-ASIOError ASIOGetChannelInfo(ASIOChannelInfo *info)
200
-{
201
-	if(!theAsioDriver)
202
-	{
203
-		info->channelGroup = -1;
204
-		info->type = ASIOSTInt16MSB;
205
-		strcpy(info->name, "None");
206
-		return ASE_NotPresent;
207
-	}
208
-	return theAsioDriver->getChannelInfo(info);
209
-}
210
-
211
-ASIOError ASIOCreateBuffers(ASIOBufferInfo *bufferInfos, long numChannels,
212
-	long bufferSize, ASIOCallbacks *callbacks)
213
-{
214
-	if(!theAsioDriver)
215
-	{
216
-		ASIOBufferInfo *info = bufferInfos;
217
-		for(long i = 0; i < numChannels; i++, info++)
218
-			info->buffers[0] = info->buffers[1] = 0;
219
-		return ASE_NotPresent;
220
-	}
221
-	return theAsioDriver->createBuffers(bufferInfos, numChannels, bufferSize, callbacks);
222
-}
223
-
224
-ASIOError ASIODisposeBuffers(void)
225
-{
226
-	if(!theAsioDriver)
227
-		return ASE_NotPresent;
228
-	return theAsioDriver->disposeBuffers();
229
-}
230
-
231
-ASIOError ASIOControlPanel(void)
232
-{
233
-	if(!theAsioDriver)
234
-		return ASE_NotPresent;
235
-	return theAsioDriver->controlPanel();
236
-}
237
-
238
-ASIOError ASIOFuture(long selector, void *opt)
239
-{
240
-	if(!theAsioDriver)
241
-		return ASE_NotPresent;
242
-	return theAsioDriver->future(selector, opt);
243
-}
244
-
245
-ASIOError ASIOOutputReady(void)
246
-{
247
-	if(!theAsioDriver)
248
-		return ASE_NotPresent;
249
-	return theAsioDriver->outputReady();
250
-}
251
-
252
-#if MAC
253
-}	// extern "C"
254
-#pragma export off
255
-#endif
256
-
257
-

+ 0
- 1070
src/hostapi/asio/ASIOSDK/common/asio.h
File diff suppressed because it is too large
View File


+ 0
- 139
src/hostapi/asio/ASIOSDK/common/asiodrvr.cpp View File

@@ -1,139 +0,0 @@
1
-/*
2
-	Steinberg Audio Stream I/O API
3
-	(c) 1996, Steinberg Soft- und Hardware GmbH
4
-	charlie (May 1996)
5
-
6
-	asiodrvr.cpp
7
-	c++ superclass to implement asio functionality. from this,
8
-	you can derive whatever required
9
-*/
10
-
11
-#include <string.h>
12
-#include "asiosys.h"
13
-#include "asiodrvr.h"
14
-
15
-#if WINDOWS
16
-#error do not use this
17
-AsioDriver::AsioDriver (LPUNKNOWN pUnk, HRESULT *phr) : CUnknown("My AsioDriver", pUnk, phr)
18
-{
19
-}
20
-
21
-#else
22
-
23
-AsioDriver::AsioDriver()
24
-{
25
-}
26
-
27
-#endif
28
-
29
-AsioDriver::~AsioDriver()
30
-{
31
-}
32
-
33
-ASIOBool AsioDriver::init(void *sysRef)
34
-{
35
-	return ASE_NotPresent;
36
-}
37
-
38
-void AsioDriver::getDriverName(char *name)
39
-{
40
-	strcpy(name, "No Driver");
41
-}
42
-
43
-long AsioDriver::getDriverVersion()
44
-{
45
-	return 0;
46
-}
47
-
48
-void AsioDriver::getErrorMessage(char *string)
49
-{
50
-	strcpy(string, "ASIO Driver Implementation Error!");
51
-}
52
-
53
-ASIOError AsioDriver::start()
54
-{
55
-	return ASE_NotPresent;
56
-}
57
-
58
-ASIOError AsioDriver::stop()
59
-{
60
-	return ASE_NotPresent;
61
-}
62
-
63
-ASIOError AsioDriver::getChannels(long *numInputChannels, long *numOutputChannels)
64
-{
65
-	return ASE_NotPresent;
66
-}
67
-
68
-ASIOError AsioDriver::getLatencies(long *inputLatency, long *outputLatency)
69
-{
70
-	return ASE_NotPresent;
71
-}
72
-
73
-ASIOError AsioDriver::getBufferSize(long *minSize, long *maxSize,
74
-		long *preferredSize, long *granularity)
75
-{
76
-	return ASE_NotPresent;
77
-}
78
-
79
-ASIOError AsioDriver::canSampleRate(ASIOSampleRate sampleRate)
80
-{
81
-	return ASE_NotPresent;
82
-}
83
-
84
-ASIOError AsioDriver::getSampleRate(ASIOSampleRate *sampleRate)
85
-{
86
-	return ASE_NotPresent;
87
-}
88
-
89
-ASIOError AsioDriver::setSampleRate(ASIOSampleRate sampleRate)
90
-{
91
-	return ASE_NotPresent;
92
-}
93
-
94
-ASIOError AsioDriver::getClockSources(ASIOClockSource *clocks, long *numSources)
95
-{
96
-	*numSources = 0;
97
-	return ASE_NotPresent;
98
-}
99
-
100
-ASIOError AsioDriver::setClockSource(long reference)
101
-{
102
-	return ASE_NotPresent;
103
-}
104
-
105
-ASIOError AsioDriver::getSamplePosition(ASIOSamples *sPos, ASIOTimeStamp *tStamp)
106
-{
107
-	return ASE_NotPresent;
108
-}
109
-
110
-ASIOError AsioDriver::getChannelInfo(ASIOChannelInfo *info)
111
-{
112
-	return ASE_NotPresent;
113
-}
114
-
115
-ASIOError AsioDriver::createBuffers(ASIOBufferInfo *channelInfos, long numChannels,
116
-		long bufferSize, ASIOCallbacks *callbacks)
117
-{
118
-	return ASE_NotPresent;
119
-}
120
-
121
-ASIOError AsioDriver::disposeBuffers()
122
-{
123
-	return ASE_NotPresent;
124
-}
125
-
126
-ASIOError AsioDriver::controlPanel()
127
-{
128
-	return ASE_NotPresent;
129
-}
130
-
131
-ASIOError AsioDriver::future(long selector, void *opt)
132
-{
133
-	return ASE_NotPresent;
134
-}
135
-
136
-ASIOError AsioDriver::outputReady()
137
-{
138
-	return ASE_NotPresent;
139
-}

+ 0
- 76
src/hostapi/asio/ASIOSDK/common/asiodrvr.h View File

@@ -1,76 +0,0 @@
1
-/*
2
-	Steinberg Audio Stream I/O API
3
-	(c) 1996, Steinberg Soft- und Hardware GmbH
4
-	charlie (May 1996)
5
-
6
-	asiodrvr.h
7
-	c++ superclass to implement asio functionality. from this,
8
-	you can derive whatever required
9
-*/
10
-
11
-#ifndef _asiodrvr_
12
-#define _asiodrvr_
13
-
14
-// cpu and os system we are running on
15
-#include "asiosys.h"
16
-// basic "C" interface
17
-#include "asio.h"
18
-
19
-class AsioDriver;
20
-extern AsioDriver *getDriver();		// for generic constructor 
21
-
22
-#if WINDOWS
23
-#include <windows.h>
24
-#include "combase.h"
25
-#include "iasiodrv.h"
26
-class AsioDriver : public IASIO ,public CUnknown
27
-{
28
-public:
29
-	AsioDriver(LPUNKNOWN pUnk, HRESULT *phr);
30
-
31
-	DECLARE_IUNKNOWN
32
-	// Factory method
33
-	static CUnknown *CreateInstance(LPUNKNOWN pUnk, HRESULT *phr);
34
-	// IUnknown
35
-	virtual HRESULT STDMETHODCALLTYPE NonDelegatingQueryInterface(REFIID riid,void **ppvObject);
36
-
37
-#else
38
-
39
-class AsioDriver
40
-{
41
-public:
42
-	AsioDriver();
43
-#endif
44
-	virtual ~AsioDriver();
45
-
46
-	virtual ASIOBool init(void* sysRef);
47
-	virtual void getDriverName(char *name);	// max 32 bytes incl. terminating zero
48
-	virtual long getDriverVersion();
49
-	virtual void getErrorMessage(char *string);	// max 124 bytes incl.
50
-
51
-	virtual ASIOError start();
52
-	virtual ASIOError stop();
53
-
54
-	virtual ASIOError getChannels(long *numInputChannels, long *numOutputChannels);
55
-	virtual ASIOError getLatencies(long *inputLatency, long *outputLatency);
56
-	virtual ASIOError getBufferSize(long *minSize, long *maxSize,
57
-		long *preferredSize, long *granularity);
58
-
59
-	virtual ASIOError canSampleRate(ASIOSampleRate sampleRate);
60
-	virtual ASIOError getSampleRate(ASIOSampleRate *sampleRate);
61
-	virtual ASIOError setSampleRate(ASIOSampleRate sampleRate);
62
-	virtual ASIOError getClockSources(ASIOClockSource *clocks, long *numSources);
63
-	virtual ASIOError setClockSource(long reference);
64
-
65
-	virtual ASIOError getSamplePosition(ASIOSamples *sPos, ASIOTimeStamp *tStamp);
66
-	virtual ASIOError getChannelInfo(ASIOChannelInfo *info);
67
-
68
-	virtual ASIOError createBuffers(ASIOBufferInfo *bufferInfos, long numChannels,
69
-		long bufferSize, ASIOCallbacks *callbacks);
70
-	virtual ASIOError disposeBuffers();
71
-
72
-	virtual ASIOError controlPanel();
73
-	virtual ASIOError future(long selector, void *opt);
74
-	virtual ASIOError outputReady();
75
-};
76
-#endif

+ 0
- 82
src/hostapi/asio/ASIOSDK/common/asiosys.h View File

@@ -1,82 +0,0 @@
1
-#ifndef __asiosys__
2
-	#define __asiosys__
3
-
4
-	#if defined(_WIN32) || defined(_WIN64)
5
-		#undef MAC 
6
-		#define PPC 0
7
-		#define WINDOWS 1
8
-		#define SGI 0
9
-		#define SUN 0
10
-		#define LINUX 0
11
-		#define BEOS 0
12
-
13
-		#define NATIVE_INT64 0
14
-		#define IEEE754_64FLOAT 1
15
-	
16
-	#elif BEOS
17
-		#define MAC 0
18
-		#define PPC 0
19
-		#define WINDOWS 0
20
-		#define PC 0
21
-		#define SGI 0
22
-		#define SUN 0
23
-		#define LINUX 0
24
-		
25
-		#define NATIVE_INT64 0
26
-		#define IEEE754_64FLOAT 1
27
-		
28
-		#ifndef DEBUG
29
-			#define DEBUG 0
30
-		 	#if DEBUG
31
-		 		void DEBUGGERMESSAGE(char *string);
32
-		 	#else
33
-		  		#define DEBUGGERMESSAGE(a)
34
-			#endif
35
-		#endif
36
-
37
-	#elif SGI
38
-		#define MAC 0
39
-		#define PPC 0
40
-		#define WINDOWS 0
41
-		#define PC 0
42
-		#define SUN 0
43
-		#define LINUX 0
44
-		#define BEOS 0
45
-		
46
-		#define NATIVE_INT64 0
47
-		#define IEEE754_64FLOAT 1
48
-		
49
-		#ifndef DEBUG
50
-			#define DEBUG 0
51
-		 	#if DEBUG
52
-		 		void DEBUGGERMESSAGE(char *string);
53
-		 	#else
54
-		  		#define DEBUGGERMESSAGE(a)
55
-			#endif
56
-		#endif
57
-
58
-	#else	// MAC
59
-
60
-		#define MAC 1
61
-		#define PPC 1
62
-		#define WINDOWS 0
63
-		#define PC 0
64
-		#define SGI 0
65
-		#define SUN 0
66
-		#define LINUX 0
67
-		#define BEOS 0
68
-
69
-		#define NATIVE_INT64 0
70
-		#define IEEE754_64FLOAT 1
71
-
72
-		#ifndef DEBUG
73
-			#define DEBUG 0
74
-			#if DEBUG
75
-				void DEBUGGERMESSAGE(char *string);
76
-			#else
77
-				#define DEBUGGERMESSAGE(a)
78
-			#endif
79
-		#endif
80
-	#endif
81
-
82
-#endif

+ 0
- 202
src/hostapi/asio/ASIOSDK/common/combase.cpp View File

@@ -1,202 +0,0 @@
1
-//==========================================================================;
2
-//
3
-//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4
-//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5
-//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
6
-//  PURPOSE.
7
-//
8
-//  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
9
-//
10
-//--------------------------------------------------------------------------;
11
-
12
-// Base class hierachy for creating COM objects, December 1994
13
-
14
-#include <windows.h>
15
-#include "wxdebug.h"
16
-#include "combase.h"
17
-#pragma warning( disable : 4514 )   // Disable warnings re unused inline functions
18
-
19
-
20
-/* Define the static member variable */
21
-
22
-LONG CBaseObject::m_cObjects = 0;
23
-
24
-
25
-/* Constructor */
26
-
27
-CBaseObject::CBaseObject(TCHAR *pName)
28
-{
29
-    /* Increment the number of active objects */
30
-    InterlockedIncrement(&m_cObjects);
31
-
32
-#ifdef DEBUG
33
-    m_dwCookie = DbgRegisterObjectCreation(pName);
34
-#endif
35
-}
36
-
37
-
38
-/* Destructor */
39
-
40
-CBaseObject::~CBaseObject()
41
-{
42
-    /* Decrement the number of objects active */
43
-    InterlockedDecrement(&m_cObjects);
44
-
45
-#ifdef DEBUG
46
-    DbgRegisterObjectDestruction(m_dwCookie);
47
-#endif
48
-}
49
-
50
-
51
-/* Constructor */
52
-
53
-// We know we use "this" in the initialization list, we also know we don't modify *phr.
54
-#pragma warning( disable : 4355 4100 ) 
55
-CUnknown::CUnknown(TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr) 
56
-: CBaseObject(pName)
57
-/* Start the object with a reference count of zero - when the      */
58
-/* object is queried for it's first interface this may be          */
59
-/* incremented depending on whether or not this object is          */
60
-/* currently being aggregated upon                                 */
61
-, m_cRef(0)
62
-/* Set our pointer to our IUnknown interface.                      */
63
-/* If we have an outer, use its, otherwise use ours.               */
64
-/* This pointer effectivly points to the owner of                  */
65
-/* this object and can be accessed by the GetOwner() method.       */
66
-, m_pUnknown( pUnk != 0 ? pUnk : reinterpret_cast<LPUNKNOWN>( static_cast<PNDUNKNOWN>(this) ) )
67
- /* Why the double cast?  Well, the inner cast is a type-safe cast */
68
- /* to pointer to a type from which we inherit.  The second is     */
69
- /* type-unsafe but works because INonDelegatingUnknown "behaves   */
70
- /* like" IUnknown. (Only the names on the methods change.)        */
71
-{
72
-    // Everything we need to do has been done in the initializer list
73
-}
74
-#pragma warning( default : 4355 4100 ) 
75
-
76
-/* QueryInterface */
77
-
78
-STDMETHODIMP CUnknown::NonDelegatingQueryInterface(REFIID riid, void ** ppv)
79
-{
80
-    CheckPointer(ppv,E_POINTER);
81
-    ValidateReadWritePtr(ppv,sizeof(PVOID));
82
-
83
-    /* We know only about IUnknown */
84
-
85
-    if (riid == IID_IUnknown) {
86
-        GetInterface((LPUNKNOWN) (PNDUNKNOWN) this, ppv);
87
-        return NOERROR;
88
-    } else {
89
-        *ppv = NULL;
90
-        return E_NOINTERFACE;
91
-    }
92
-}
93
-
94
-/* We have to ensure that we DON'T use a max macro, since these will typically   */
95
-/* lead to one of the parameters being evaluated twice.  Since we are worried    */
96
-/* about concurrency, we can't afford to access the m_cRef twice since we can't  */
97
-/* afford to run the risk that its value having changed between accesses.        */
98
-#ifdef max
99
-    #undef max
100
-#endif
101
-
102
-template<class T> inline static T max( const T & a, const T & b )
103
-{
104
-    return a > b ? a : b;
105
-}
106
-
107
-/* AddRef */
108
-
109
-STDMETHODIMP_(ULONG) CUnknown::NonDelegatingAddRef()
110
-{
111
-    LONG lRef = InterlockedIncrement( &m_cRef );
112
-    ASSERT(lRef > 0);
113
-    DbgLog((LOG_MEMORY,3,TEXT("    Obj %d ref++ = %d"),
114
-           m_dwCookie, m_cRef));
115
-    return max(ULONG(m_cRef), 1ul);
116
-}
117
-
118
-
119
-
120
-/* Release */
121
-
122
-STDMETHODIMP_(ULONG) CUnknown::NonDelegatingRelease()
123
-{
124
-    /* If the reference count drops to zero delete ourselves */
125
-
126
-    LONG lRef = InterlockedDecrement( &m_cRef );
127
-    ASSERT(lRef >= 0);
128
-
129
-    DbgLog((LOG_MEMORY,3,TEXT("    Object %d ref-- = %d"),
130
-	    m_dwCookie, m_cRef));
131
-    if (lRef == 0) {
132
-
133
-        // COM rules say we must protect against re-entrancy.
134
-        // If we are an aggregator and we hold our own interfaces
135
-        // on the aggregatee, the QI for these interfaces will
136
-        // addref ourselves. So after doing the QI we must release
137
-        // a ref count on ourselves. Then, before releasing the
138
-        // private interface, we must addref ourselves. When we do
139
-        // this from the destructor here it will result in the ref
140
-        // count going to 1 and then back to 0 causing us to
141
-        // re-enter the destructor. Hence we add an extra refcount here
142
-        // once we know we will delete the object.
143
-        // for an example aggregator see filgraph\distrib.cpp.
144
-
145
-        m_cRef++;
146
-
147
-        delete this;
148
-        return ULONG(0);
149
-    } else {
150
-        return max(ULONG(m_cRef), 1ul);
151
-    }
152
-}
153
-
154
-
155
-/* Return an interface pointer to a requesting client
156
-   performing a thread safe AddRef as necessary */
157
-
158
-HRESULT CUnknown::GetInterface(LPUNKNOWN pUnk, void **ppv)
159
-{
160
-    CheckPointer(ppv, E_POINTER);
161
-    *ppv = pUnk;
162
-    pUnk->AddRef();
163
-    return NOERROR;
164
-}
165
-
166
-
167
-/* Compares two interfaces and returns TRUE if they are on the same object */
168
-
169
-BOOL IsEqualObject(IUnknown *pFirst, IUnknown *pSecond)
170
-{
171
-    /*  Different objects can't have the same interface pointer for
172
-        any interface
173
-    */
174
-    if (pFirst == pSecond) {
175
-        return TRUE;
176
-    }
177
-    /*  OK - do it the hard way - check if they have the same
178
-        IUnknown pointers - a single object can only have one of these
179
-    */
180
-    LPUNKNOWN pUnknown1;     // Retrieve the IUnknown interface
181
-    LPUNKNOWN pUnknown2;     // Retrieve the other IUnknown interface
182
-    HRESULT hr;              // General OLE return code
183
-
184
-    ASSERT(pFirst);
185
-    ASSERT(pSecond);
186
-
187
-    /* See if the IUnknown pointers match */
188
-
189
-    hr = pFirst->QueryInterface(IID_IUnknown,(void **) &pUnknown1);
190
-    ASSERT(SUCCEEDED(hr));
191
-    ASSERT(pUnknown1);
192
-
193
-    hr = pSecond->QueryInterface(IID_IUnknown,(void **) &pUnknown2);
194
-    ASSERT(SUCCEEDED(hr));
195
-    ASSERT(pUnknown2);
196
-
197
-    /* Release the extra interfaces we hold */
198
-
199
-    pUnknown1->Release();
200
-    pUnknown2->Release();
201
-    return (pUnknown1 == pUnknown2);
202
-}

+ 0
- 284
src/hostapi/asio/ASIOSDK/common/combase.h View File

@@ -1,284 +0,0 @@
1
-//==========================================================================;
2
-//
3
-//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4
-//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5
-//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
6
-//  PURPOSE.
7
-//
8
-//  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
9
-//
10
-//--------------------------------------------------------------------------;
11
-
12
-// Base class hierachy for creating COM objects, December 1994
13
-
14
-/*
15
-
16
-a. Derive your COM object from CUnknown
17
-
18
-b. Make a static CreateInstance function that takes an LPUNKNOWN, an HRESULT *
19
-   and a TCHAR *. The LPUNKNOWN defines the object to delegate IUnknown calls
20
-   to. The HRESULT * allows error codes to be passed around constructors and
21
-   the TCHAR * is a descriptive name that can be printed on the debugger.
22
-
23
-   It is important that constructors only change the HRESULT * if they have
24
-   to set an ERROR code, if it was successful then leave it alone or you may
25
-   overwrite an error code from an object previously created.
26
-
27
-   When you call a constructor the descriptive name should be in static store
28
-   as we do not copy the string. To stop large amounts of memory being used
29
-   in retail builds by all these static strings use the NAME macro,
30
-
31
-   CMyFilter = new CImplFilter(NAME("My filter"),pUnknown,phr);
32
-   if (FAILED(hr)) {
33
-       return hr;
34
-   }
35
-
36
-   In retail builds NAME(_x_) compiles to NULL, the base CBaseObject class
37
-   knows not to do anything with objects that don't have a name.
38
-
39
-c. Have a constructor for your object that passes the LPUNKNOWN, HRESULT * and
40
-   TCHAR * to the CUnknown constructor. You can set the HRESULT if you have an
41
-   error, or just simply pass it through to the constructor.
42
-
43
-   The object creation will fail in the class factory if the HRESULT indicates
44
-   an error (ie FAILED(HRESULT) == TRUE)
45
-
46
-d. Create a FactoryTemplate with your object's class id and CreateInstance
47
-   function.
48
-
49
-Then (for each interface) either
50
-
51
-Multiple inheritance
52
-
53
-1. Also derive it from ISomeInterface
54
-2. Include DECLARE_IUNKNOWN in your class definition to declare
55
-   implementations of QueryInterface, AddRef and Release that
56
-   call the outer unknown
57
-3. Override NonDelegatingQueryInterface to expose ISomeInterface by
58
-   code something like
59
-
60
-     if (riid == IID_ISomeInterface) {
61
-         return GetInterface((ISomeInterface *) this, ppv);
62
-     } else {
63
-         return CUnknown::NonDelegatingQueryInterface(riid, ppv);
64
-     }
65
-
66
-4. Declare and implement the member functions of ISomeInterface.
67
-
68
-or: Nested interfaces
69
-
70
-1. Declare a class derived from CUnknown
71
-2. Include DECLARE_IUNKNOWN in your class definition
72
-3. Override NonDelegatingQueryInterface to expose ISomeInterface by
73
-   code something like
74
-
75
-     if (riid == IID_ISomeInterface) {
76
-         return GetInterface((ISomeInterface *) this, ppv);
77
-     } else {
78
-         return CUnknown::NonDelegatingQueryInterface(riid, ppv);
79
-     }
80
-
81
-4. Implement the member functions of ISomeInterface. Use GetOwner() to
82
-   access the COM object class.
83
-
84
-And in your COM object class:
85
-
86
-5. Make the nested class a friend of the COM object class, and declare
87
-   an instance of the nested class as a member of the COM object class.
88
-
89
-   NOTE that because you must always pass the outer unknown and an hResult
90
-   to the CUnknown constructor you cannot use a default constructor, in
91
-   other words you will have to make the member variable a pointer to the
92
-   class and make a NEW call in your constructor to actually create it.
93
-
94
-6. override the NonDelegatingQueryInterface with code like this:
95
-
96
-     if (riid == IID_ISomeInterface) {
97
-         return m_pImplFilter->
98
-            NonDelegatingQueryInterface(IID_ISomeInterface, ppv);
99
-     } else {
100
-         return CUnknown::NonDelegatingQueryInterface(riid, ppv);
101
-     }
102
-
103
-You can have mixed classes which support some interfaces via multiple
104
-inheritance and some via nested classes
105
-
106
-*/
107
-
108
-#ifndef __COMBASE__
109
-#define __COMBASE__
110
-
111
-/* The DLLENTRY module initialises the module handle on loading */
112
-
113
-extern HINSTANCE g_hInst;
114
-
115
-/* On DLL load remember which platform we are running on */
116
-
117
-extern DWORD g_amPlatform;
118
-extern OSVERSIONINFO g_osInfo;     // Filled in by GetVersionEx
119
-
120
-/* Version of IUnknown that is renamed to allow a class to support both
121
-   non delegating and delegating IUnknowns in the same COM object */
122
-
123
-DECLARE_INTERFACE(INonDelegatingUnknown)
124
-{
125
-    STDMETHOD(NonDelegatingQueryInterface) (THIS_ REFIID, LPVOID *) PURE;
126
-    STDMETHOD_(ULONG, NonDelegatingAddRef)(THIS) PURE;
127
-    STDMETHOD_(ULONG, NonDelegatingRelease)(THIS) PURE;
128
-};
129
-
130
-typedef INonDelegatingUnknown *PNDUNKNOWN;
131
-
132
-
133
-/* This is the base object class that supports active object counting. As
134
-   part of the debug facilities we trace every time a C++ object is created
135
-   or destroyed. The name of the object has to be passed up through the class
136
-   derivation list during construction as you cannot call virtual functions
137
-   in the constructor. The downside of all this is that every single object
138
-   constructor has to take an object name parameter that describes it */
139
-
140
-class CBaseObject
141
-{
142
-
143
-private:
144
-
145
-    // Disable the copy constructor and assignment by default so you will get
146
-    //   compiler errors instead of unexpected behaviour if you pass objects
147
-    //   by value or assign objects.
148
-    CBaseObject(const CBaseObject& objectSrc);          // no implementation
149
-    void operator=(const CBaseObject& objectSrc);       // no implementation
150
-
151
-private:
152
-    static LONG m_cObjects;     /* Total number of objects active */
153
-
154
-protected:
155
-#ifdef DEBUG
156
-    DWORD m_dwCookie;           /* Cookie identifying this object */
157
-#endif
158
-
159
-
160
-public:
161
-
162
-    /* These increment and decrement the number of active objects */
163
-
164
-    CBaseObject(TCHAR *pName);
165
-    ~CBaseObject();
166
-
167
-    /* Call this to find if there are any CUnknown derived objects active */
168
-
169
-    static LONG ObjectsActive() {
170
-        return m_cObjects;
171
-    };
172
-};
173
-
174
-
175
-/* An object that supports one or more COM interfaces will be based on
176
-   this class. It supports counting of total objects for DLLCanUnloadNow
177
-   support, and an implementation of the core non delegating IUnknown */
178
-
179
-class CUnknown : public INonDelegatingUnknown,
180
-                 public CBaseObject
181
-{
182
-
183
-private:
184
-    const LPUNKNOWN m_pUnknown; /* Owner of this object */
185
-
186
-protected:                      /* So we can override NonDelegatingRelease() */
187
-    volatile LONG m_cRef;       /* Number of reference counts */
188
-
189
-public:
190
-
191
-    CUnknown(TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr);
192
-    virtual ~CUnknown() {};
193
-
194
-    /* Return the owner of this object */
195
-
196
-    LPUNKNOWN GetOwner() const {
197
-        return m_pUnknown;
198
-    };
199
-
200
-    /* Called from the class factory to create a new instance, it is
201
-       pure virtual so it must be overriden in your derived class */
202
-
203
-    /* static CUnknown *CreateInstance(LPUNKNOWN, HRESULT *) */
204
-
205
-    /* Non delegating unknown implementation */
206
-
207
-    STDMETHODIMP NonDelegatingQueryInterface(REFIID, void **);
208
-    STDMETHODIMP_(ULONG) NonDelegatingAddRef();
209
-    STDMETHODIMP_(ULONG) NonDelegatingRelease();
210
-
211
-    /* Return an interface pointer to a requesting client
212
-       performing a thread safe AddRef as necessary */
213
-
214
-    HRESULT GetInterface(LPUNKNOWN pUnk, void **ppv);
215
-
216
-
217
-};
218
-
219
-#if WINVER < 0x0501
220
-
221
-/* The standard InterlockedXXX functions won't take volatiles */
222
-static inline LONG InterlockedIncrement( volatile LONG * plong )
223
-{ return InterlockedIncrement( const_cast<LONG*>( plong ) ); }
224
-
225
-static inline LONG InterlockedDecrement( volatile LONG * plong )
226
-{ return InterlockedDecrement( const_cast<LONG*>( plong ) ); }
227
-
228
-static inline LONG InterlockedExchange( volatile LONG * plong, LONG new_value )
229
-{ return InterlockedExchange( const_cast<LONG*>( plong ), new_value ); }
230
-
231
-#endif
232
-
233
-/* A function that can create a new COM object */
234
-
235
-typedef CUnknown *(*LPFNNewCOMObject)(LPUNKNOWN pUnkOuter, HRESULT *phr);
236
-
237
-/*  A function (can be NULL) which is called from the DLL entrypoint
238
-    routine for each factory template:
239
-
240
-    bLoading - TRUE on DLL load, FALSE on DLL unload
241
-    rclsid   - the m_ClsID of the entry
242
-*/
243
-typedef void (*LPFNInitRoutine)(BOOL bLoading, const CLSID *rclsid);
244
-
245
-/* Create one of these per object class in an array so that
246
-   the default class factory code can create new instances */
247
-
248
-class CFactoryTemplate {
249
-
250
-public:
251
-
252
-    const WCHAR *m_Name;
253
-    const CLSID *m_ClsID;
254
-    LPFNNewCOMObject m_lpfnNew;
255
-    LPFNInitRoutine  m_lpfnInit;
256
-
257
-    BOOL IsClassID(REFCLSID rclsid) const {
258
-        return (IsEqualCLSID(*m_ClsID,rclsid));
259
-    };
260
-
261
-    CUnknown *CreateInstance(LPUNKNOWN pUnk, HRESULT *phr) const {
262
-        return m_lpfnNew(pUnk, phr);
263
-    };
264
-};
265
-
266
-
267
-/* You must override the (pure virtual) NonDelegatingQueryInterface to return
268
-   interface pointers (using GetInterface) to the interfaces your derived
269
-   class supports (the default implementation only supports IUnknown) */
270
-
271
-#define DECLARE_IUNKNOWN                                        \
272
-    STDMETHODIMP QueryInterface(REFIID riid, void **ppv) {      \
273
-        return GetOwner()->QueryInterface(riid,ppv);            \
274
-    };                                                          \
275
-    STDMETHODIMP_(ULONG) AddRef() {                             \
276
-        return GetOwner()->AddRef();                            \
277
-    };                                                          \
278
-    STDMETHODIMP_(ULONG) Release() {                            \
279
-        return GetOwner()->Release();                           \
280
-    };
281
-
282
-#endif /* __COMBASE__ */
283
-
284
-

+ 0
- 14
src/hostapi/asio/ASIOSDK/common/debugmessage.cpp View File

@@ -1,14 +0,0 @@
1
-#include "asiosys.h"
2
-
3
-#if DEBUG
4
-#if MAC
5
-#include <TextUtils.h>
6
-void DEBUGGERMESSAGE(char *string)
7
-{
8
-	c2pstr(string);
9
-	DebugStr((unsigned char *)string);
10
-}
11
-#else
12
-#error debugmessage
13
-#endif
14
-#endif

+ 0
- 323
src/hostapi/asio/ASIOSDK/common/dllentry.cpp View File

@@ -1,323 +0,0 @@
1
-//==========================================================================;
2
-//
3
-//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4
-//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5
-//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
6
-//  PURPOSE.
7
-//
8
-//  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
9
-//
10
-//--------------------------------------------------------------------------;
11
-
12
-//
13
-// classes used to support dll entrypoints for COM objects.
14
-//
15
-// #include "switches.h"
16
-
17
-#include <windows.h>
18
-#include "wxdebug.h"
19
-#include "combase.h"
20
-#ifdef DEBUG
21
-#include <tchar.h>
22
-#endif
23
-
24
-#include <stdio.h>
25
-
26
-extern CFactoryTemplate g_Templates[];
27
-extern int g_cTemplates;
28
-
29
-HINSTANCE hinstance = 0;
30
-DWORD	  g_amPlatform;		// VER_PLATFORM_WIN32_WINDOWS etc... (from GetVersionEx)
31
-OSVERSIONINFO g_osInfo;
32
-
33
-//
34
-// an instance of this is created by the DLLGetClassObject entrypoint
35
-// it uses the CFactoryTemplate object it is given to support the
36
-// IClassFactory interface
37
-
38
-class CClassFactory : public IClassFactory
39
-{
40
-
41
-private:
42
-    const CFactoryTemplate * m_pTemplate;
43
-
44
-    ULONG m_cRef;
45
-
46
-    static int m_cLocked;
47
-public:
48
-    CClassFactory(const CFactoryTemplate *);
49
-
50
-    // IUnknown
51
-    STDMETHODIMP QueryInterface(REFIID riid, void ** ppv);
52
-    STDMETHODIMP_(ULONG)AddRef();
53
-    STDMETHODIMP_(ULONG)Release();
54
-
55
-    // IClassFactory
56
-    STDMETHODIMP CreateInstance(LPUNKNOWN pUnkOuter, REFIID riid, void **pv);
57
-    STDMETHODIMP LockServer(BOOL fLock);
58
-
59
-    // allow DLLGetClassObject to know about global server lock status
60
-    static BOOL IsLocked() {
61
-        return (m_cLocked > 0);
62
-    };
63
-};
64
-
65
-// process-wide dll locked state
66
-int CClassFactory::m_cLocked = 0;
67
-
68
-CClassFactory::CClassFactory(const CFactoryTemplate *pTemplate)
69
-{
70
-    m_cRef = 0;
71
-    m_pTemplate = pTemplate;
72
-}
73
-
74
-
75
-STDMETHODIMP CClassFactory::QueryInterface(REFIID riid,void **ppv)
76
-{
77
-    CheckPointer(ppv,E_POINTER)
78
-    ValidateReadWritePtr(ppv,sizeof(PVOID));
79
-    *ppv = NULL;
80
-
81
-    // any interface on this object is the object pointer.
82
-    if ((riid == IID_IUnknown) || (riid == IID_IClassFactory)) {
83
-        *ppv = (LPVOID) this;
84
-	// AddRef returned interface pointer
85
-        ((LPUNKNOWN) *ppv)->AddRef();
86
-        return NOERROR;
87
-    }
88
-
89
-    return ResultFromScode(E_NOINTERFACE);
90
-}
91
-
92
-
93
-STDMETHODIMP_(ULONG) CClassFactory::AddRef()
94
-{
95
-    return ++m_cRef;
96
-}
97
-
98
-STDMETHODIMP_(ULONG) CClassFactory::Release()
99
-{
100
-	LONG	rc;
101
-
102
-    if (--m_cRef == 0) {
103
-		delete this;
104
-		rc = 0;
105
-    } else rc = m_cRef;
106
-
107
-	return rc;
108
-}
109
-
110
-STDMETHODIMP CClassFactory::CreateInstance(LPUNKNOWN pUnkOuter,REFIID riid,void **pv)
111
-{
112
-	CheckPointer(pv,E_POINTER)
113
-    ValidateReadWritePtr(pv,sizeof(void *));
114
-
115
-    /* Enforce the normal OLE rules regarding interfaces and delegation */
116
-
117
-    if (pUnkOuter != NULL) {
118
-        if (IsEqualIID(riid,IID_IUnknown) == FALSE) {
119
-            return ResultFromScode(E_NOINTERFACE);
120
-        }
121
-    }
122
-
123
-    /* Create the new object through the derived class's create function */
124
-
125
-    HRESULT hr = NOERROR;
126
-    CUnknown *pObj = m_pTemplate->CreateInstance(pUnkOuter, &hr);
127
-
128
-    if (pObj == NULL) {
129
-        return E_OUTOFMEMORY;
130
-    }
131
-
132
-    /* Delete the object if we got a construction error */
133
-
134
-	if (FAILED(hr)) {
135
-		delete pObj;
136
-      return hr;
137
-   }
138
-
139
-    /* Get a reference counted interface on the object */
140
-
141
-    /* We wrap the non-delegating QI with NDAddRef & NDRelease. */
142
-    /* This protects any outer object from being prematurely    */
143
-    /* released by an inner object that may have to be created  */
144
-    /* in order to supply the requested interface.              */
145
-    pObj->NonDelegatingAddRef();
146
-    hr = pObj->NonDelegatingQueryInterface(riid, pv);
147
-    pObj->NonDelegatingRelease();
148
-    /* Note that if NonDelegatingQueryInterface fails, it will  */
149
-    /* not increment the ref count, so the NonDelegatingRelease */
150
-    /* will drop the ref back to zero and the object will "self-*/
151
-    /* destruct".  Hence we don't need additional tidy-up code  */
152
-    /* to cope with NonDelegatingQueryInterface failing.        */
153
-
154
-    if (SUCCEEDED(hr)) {
155
-        ASSERT(*pv);
156
-    }
157
-
158
-    return hr;
159
-}
160
-
161
-STDMETHODIMP CClassFactory::LockServer(BOOL fLock)
162
-{
163
-    if (fLock) {
164
-        m_cLocked++;
165
-    } else {
166
-        m_cLocked--;
167
-    }
168
-    return NOERROR;
169
-}
170
-
171
-
172
-// --- COM entrypoints -----------------------------------------
173
-// DllRegisterServer
174
-
175
-//called by COM to get the class factory object for a given class
176
-STDAPI DllGetClassObject(REFCLSID rClsID,REFIID riid,void **pv)
177
-{
178
-	// DebugBreak();
179
-
180
-    if (!(riid == IID_IUnknown) && !(riid == IID_IClassFactory)) {
181
-            return E_NOINTERFACE;
182
-    }
183
-
184
-    // traverse the array of templates looking for one with this
185
-    // class id
186
-    for (int i = 0; i < g_cTemplates; i++) {
187
-        const CFactoryTemplate * pT = &g_Templates[i];
188
-        if (pT->IsClassID(rClsID)) {
189
-
190
-            // found a template - make a class factory based on this
191
-            // template
192
-
193
-            *pv = (LPVOID) (LPUNKNOWN) new CClassFactory(pT);
194
-            if (*pv == NULL) {
195
-                return E_OUTOFMEMORY;
196
-            }
197
-            ((LPUNKNOWN)*pv)->AddRef();
198
-            return NOERROR;
199
-        }
200
-    }
201
-    return CLASS_E_CLASSNOTAVAILABLE;
202
-}
203
-
204
-//
205
-//  Call any initialization routines
206
-//
207
-void DllInitClasses(BOOL bLoading)
208
-{
209
-   int i;
210
-
211
-	// DebugBreak();
212
-
213
-	// traverse the array of templates calling the init routine
214
-   // if they have one
215
-   for (i = 0; i < g_cTemplates; i++) {
216
-		const CFactoryTemplate * pT = &g_Templates[i];
217
-      if (pT->m_lpfnInit != NULL) {
218
-			(*pT->m_lpfnInit)(bLoading, pT->m_ClsID);
219
-      }
220
-   }
221
-
222
-}
223
-
224
-// called by COM to determine if this dll can be unloaded
225
-// return ok unless there are outstanding objects or a lock requested
226
-// by IClassFactory::LockServer
227
-//
228
-// CClassFactory has a static function that can tell us about the locks,
229
-// and CCOMObject has a static function that can tell us about the active
230
-// object count
231
-STDAPI DllCanUnloadNow()
232
-{
233
-	// DebugBreak();
234
-
235
-	DbgLog((LOG_MEMORY,2,TEXT("DLLCanUnloadNow called - IsLocked = %d, Active objects = %d"),
236
-        CClassFactory::IsLocked(),
237
-        CBaseObject::ObjectsActive()));
238
-
239
-   if (CClassFactory::IsLocked() || CBaseObject::ObjectsActive()) {
240
-	
241
-		return S_FALSE;
242
-   } 
243
-	else {
244
-		return S_OK;
245
-   }
246
-}
247
-
248
-
249
-// --- standard WIN32 entrypoints --------------------------------------
250
-
251
-
252
-//extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
253
-//BOOL WINAPI DllEntryPoint(HINSTANCE hInstance,ULONG ulReason,LPVOID pv)
254
-//BOOL WINAPI DllMain (HINSTANCE hInstance,ULONG ulReason,LPVOID pv)
255
-BOOL WINAPI DllEntryPoint (HINSTANCE hInstance,ULONG ulReason,LPVOID pv)
256
-{
257
-
258
-	// DebugBreak();
259
-   
260
-	switch (ulReason) {
261
-	
262
-		case DLL_PROCESS_ATTACH:
263
-			DisableThreadLibraryCalls(hInstance);
264
-			DbgInitialise(hInstance);
265
-			{
266
-				// The platform identifier is used to work out whether
267
-				// full unicode support is available or not.  Hence the
268
-				// default will be the lowest common denominator - i.e. N/A
269
-            g_amPlatform = VER_PLATFORM_WIN32_WINDOWS; // win95 assumed in case GetVersionEx fails
270
-
271
-            g_osInfo.dwOSVersionInfoSize = sizeof(g_osInfo);
272
-            if (GetVersionEx(&g_osInfo)) {
273
-        			g_amPlatform = g_osInfo.dwPlatformId;
274
-				} 
275
-				else {
276
-					DbgLog((LOG_ERROR, 1, "Failed to get the OS platform, assuming Win95"));
277
-				}
278
-			}
279
-			hinstance = hInstance;
280
-			DllInitClasses(TRUE);
281
-			
282
-			break;
283
-
284
-		case DLL_PROCESS_DETACH:
285
-			DllInitClasses(FALSE);
286
-
287
-#ifdef DEBUG
288
-			if (CBaseObject::ObjectsActive()) {
289
-				DbgSetModuleLevel(LOG_MEMORY, 2);
290
-            TCHAR szInfo[512];
291
-            extern TCHAR m_ModuleName[];     // Cut down module name
292
-
293
-            TCHAR FullName[_MAX_PATH];      // Load the full path and module name
294
-            TCHAR *pName;                   // Searches from the end for a backslash
295
-
296
-            GetModuleFileName(NULL,FullName,_MAX_PATH);
297
-            pName = _tcsrchr(FullName,'\\');
298
-            if (pName == NULL) {
299
-                pName = FullName;
300
-            } 
301
-				else {
302
-					pName++;
303
-            }
304
-
305
-				DWORD cch = wsprintf(szInfo, TEXT("Executable: %s  Pid %x  Tid %x. "),
306
-					pName, GetCurrentProcessId(), GetCurrentThreadId());
307
-
308
-            wsprintf(szInfo+cch, TEXT("Module %s, %d objects left active!"),
309
-                     m_ModuleName, CBaseObject::ObjectsActive());
310
-            DbgAssert(szInfo, TEXT(__FILE__),__LINE__);
311
-
312
-				// If running remotely wait for the Assert to be acknowledged
313
-				// before dumping out the object register
314
-            DbgDumpObjectRegister();
315
-			}
316
-			DbgTerminate();
317
-#endif
318
-			break;
319
-    }
320
-    return TRUE;
321
-}
322
-
323
-

+ 0
- 37
src/hostapi/asio/ASIOSDK/common/iasiodrv.h View File

@@ -1,37 +0,0 @@
1
-#include "asiosys.h"
2
-#include "asio.h"
3
-
4
-/* Forward Declarations */ 
5
-
6
-#ifndef __ASIODRIVER_FWD_DEFINED__
7
-#define __ASIODRIVER_FWD_DEFINED__
8
-typedef interface IASIO IASIO;
9
-#endif 	/* __ASIODRIVER_FWD_DEFINED__ */
10
-
11
-interface IASIO : public IUnknown
12
-{
13
-
14
-	virtual ASIOBool init(void *sysHandle) = 0;
15
-	virtual void getDriverName(char *name) = 0;	
16
-	virtual long getDriverVersion() = 0;
17
-	virtual void getErrorMessage(char *string) = 0;	
18
-	virtual ASIOError start() = 0;
19
-	virtual ASIOError stop() = 0;
20
-	virtual ASIOError getChannels(long *numInputChannels, long *numOutputChannels) = 0;
21
-	virtual ASIOError getLatencies(long *inputLatency, long *outputLatency) = 0;
22
-	virtual ASIOError getBufferSize(long *minSize, long *maxSize,
23
-		long *preferredSize, long *granularity) = 0;
24
-	virtual ASIOError canSampleRate(ASIOSampleRate sampleRate) = 0;
25
-	virtual ASIOError getSampleRate(ASIOSampleRate *sampleRate) = 0;
26
-	virtual ASIOError setSampleRate(ASIOSampleRate sampleRate) = 0;
27
-	virtual ASIOError getClockSources(ASIOClockSource *clocks, long *numSources) = 0;
28
-	virtual ASIOError setClockSource(long reference) = 0;
29
-	virtual ASIOError getSamplePosition(ASIOSamples *sPos, ASIOTimeStamp *tStamp) = 0;
30
-	virtual ASIOError getChannelInfo(ASIOChannelInfo *info) = 0;
31
-	virtual ASIOError createBuffers(ASIOBufferInfo *bufferInfos, long numChannels,
32
-		long bufferSize, ASIOCallbacks *callbacks) = 0;
33
-	virtual ASIOError disposeBuffers() = 0;
34
-	virtual ASIOError controlPanel() = 0;
35
-	virtual ASIOError future(long selector,void *opt) = 0;
36
-	virtual ASIOError outputReady() = 0;
37
-};

+ 0
- 332
src/hostapi/asio/ASIOSDK/common/register.cpp View File

@@ -1,332 +0,0 @@
1
-#include <windows.h>
2
-#include <stdio.h>
3
-
4
-typedef struct keylist
5
-{
6
-	HKEY		mainKey;
7
-	HKEY		subKey;
8
-	char		*keyname;
9
-	struct keylist	*next;
10
-} KEYLIST,	*LPKEYLIST;
11
-
12
-#define CLSID_STRING_LEN				100
13
-#define MAX_PATH_LEN					360
14
-
15
-#define DEV_ERR_SELFREG					-100
16
-#define ERRSREG_MODULE_NOT_FOUND		DEV_ERR_SELFREG-1
17
-#define ERRSREG_MODPATH_NOT_FOUND		DEV_ERR_SELFREG-2
18
-#define ERRSREG_STRING_FROM_CLSID		DEV_ERR_SELFREG-3
19
-#define ERRSREG_CHAR_TO_MULTIBYTE		DEV_ERR_SELFREG-4
20
-
21
-#define SZREGSTR_DESCRIPTION			"Description"
22
-#define SZREGSTR_CLSID					"CLSID"
23
-#define SZREGSTR_INPROCSERVER32			"InprocServer32"
24
-#define SZREGSTR_THREADINGMODEL			"ThreadingModel"
25
-#define SZREGSTR_SOFTWARE				"SOFTWARE"
26
-#define SZREGSTR_ASIO					"ASIO"
27
-
28
-LONG RegisterAsioDriver (CLSID,char *,char *,char *,char *);
29
-LONG UnregisterAsioDriver (CLSID,char *,char *);
30
-
31
-static LONG findRegPath (HKEY,char *);
32
-static LONG createRegPath (HKEY,char *,char *);
33
-static LONG createRegStringValue (HKEY,char *,char *,char *);
34
-static LONG getRegString (HKEY,char *,char *,LPVOID,DWORD);
35
-static LPKEYLIST findAllSubKeys (HKEY,HKEY,DWORD,char *,LPKEYLIST);
36
-static LONG deleteRegPath (HKEY,char *,char *);
37
-
38
-static char	subkeybuf[MAX_PATH_LEN];
39
-
40
-
41
-// ------------------------------------------
42
-// Global Functions 
43
-// ------------------------------------------
44
-LONG RegisterAsioDriver (CLSID clsid,char *szdllname,char *szregname,char *szasiodesc,char *szthreadmodel)
45
-{
46
-	HMODULE			hMod;
47
-	char			szDLLPath[MAX_PATH_LEN];
48
-	char			szModuleName[MAX_PATH_LEN];
49
-	char			szregpath[MAX_PATH_LEN];
50
-	char			szclsid[CLSID_STRING_LEN];
51
-	LPOLESTR		wszCLSID = NULL;
52
-	BOOL			newregentry = FALSE;
53
-	LONG			rc;
54
-
55
-	hMod = GetModuleHandle(szdllname);
56
-	if (!hMod) return ERRSREG_MODULE_NOT_FOUND;
57
-	szModuleName[0] = 0;
58
-	GetModuleFileName(hMod,szModuleName,MAX_PATH_LEN);
59
-	if (!szModuleName[0]) return ERRSREG_MODPATH_NOT_FOUND;
60
-	CharLower((LPTSTR)szModuleName);
61
-
62
-	rc = (LONG)StringFromCLSID(clsid,&wszCLSID);
63
-	if (rc != S_OK) return ERRSREG_STRING_FROM_CLSID;
64
-	rc = (LONG)WideCharToMultiByte(CP_ACP,0,(LPWSTR)wszCLSID,-1,szclsid,CLSID_STRING_LEN,0,0);
65
-	if (!rc) return ERRSREG_CHAR_TO_MULTIBYTE;
66
-
67
-	sprintf(szregpath,"%s\\%s",SZREGSTR_CLSID,szclsid);
68
-	rc = findRegPath(HKEY_CLASSES_ROOT,szregpath);
69
-	if (rc) {
70
-		sprintf(szregpath,"%s\\%s\\%s",SZREGSTR_CLSID,szclsid,SZREGSTR_INPROCSERVER32);
71
-		getRegString (HKEY_CLASSES_ROOT,szregpath,0,(LPVOID)szDLLPath,MAX_PATH_LEN);
72
-		CharLower((LPTSTR)szDLLPath);
73
-		rc = (LONG)strcmp(szDLLPath,szModuleName);
74
-		if (rc) {
75
-			// delete old regentry
76
-			sprintf(szregpath,"%s",SZREGSTR_CLSID);
77
-			deleteRegPath(HKEY_CLASSES_ROOT,szregpath,szclsid);
78
-			newregentry = TRUE;
79
-		}
80
-	}
81
-	else newregentry = TRUE;
82
-
83
-	if (newregentry) {
84
-		// HKEY_CLASSES_ROOT\CLSID\{...}
85
-		sprintf(szregpath,"%s",SZREGSTR_CLSID);
86
-		createRegPath (HKEY_CLASSES_ROOT,szregpath,szclsid);
87
-		// HKEY_CLASSES_ROOT\CLSID\{...} -> Description
88
-		sprintf(szregpath,"%s\\%s",SZREGSTR_CLSID,szclsid);
89
-		createRegStringValue(HKEY_CLASSES_ROOT,szregpath,0,szasiodesc);
90
-		// HKEY_CLASSES_ROOT\CLSID\InProcServer32
91
-		sprintf(szregpath,"%s\\%s",SZREGSTR_CLSID,szclsid);
92
-		createRegPath (HKEY_CLASSES_ROOT,szregpath,SZREGSTR_INPROCSERVER32);
93
-		// HKEY_CLASSES_ROOT\CLSID\InProcServer32 -> DLL path
94
-		sprintf(szregpath,"%s\\%s\\%s",SZREGSTR_CLSID,szclsid,SZREGSTR_INPROCSERVER32);
95
-		createRegStringValue(HKEY_CLASSES_ROOT,szregpath,0,szModuleName);
96
-		// HKEY_CLASSES_ROOT\CLSID\InProcServer32 -> ThreadingModel
97
-		createRegStringValue(HKEY_CLASSES_ROOT,szregpath,SZREGSTR_THREADINGMODEL,szthreadmodel);
98
-	}
99
-
100
-	// HKEY_LOCAL_MACHINE\SOFTWARE\ASIO
101
-	sprintf(szregpath,"%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO);
102
-	rc = findRegPath(HKEY_LOCAL_MACHINE,szregpath);
103
-	if (rc) {
104
-		sprintf(szregpath,"%s\\%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO,szregname);
105
-		rc = findRegPath(HKEY_LOCAL_MACHINE,szregpath);
106
-		if (rc) {
107
-			sprintf(szregpath,"%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO);
108
-			deleteRegPath(HKEY_LOCAL_MACHINE,szregpath,szregname);
109
-		}
110
-	}
111
-	else {
112
-		// HKEY_LOCAL_MACHINE\SOFTWARE\ASIO
113
-		sprintf(szregpath,"%s",SZREGSTR_SOFTWARE);
114
-		createRegPath (HKEY_LOCAL_MACHINE,szregpath,SZREGSTR_ASIO);
115
-	}
116
-
117
-	// HKEY_LOCAL_MACHINE\SOFTWARE\ASIO\<szregname>
118
-	sprintf(szregpath,"%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO);
119
-	createRegPath (HKEY_LOCAL_MACHINE,szregpath,szregname);
120
-
121
-	// HKEY_LOCAL_MACHINE\SOFTWARE\ASIO\<szregname> -> CLSID 
122
-	// HKEY_LOCAL_MACHINE\SOFTWARE\ASIO\<szregname> -> Description
123
-	sprintf(szregpath,"%s\\%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO,szregname);
124
-	createRegStringValue(HKEY_LOCAL_MACHINE,szregpath,SZREGSTR_CLSID,szclsid);
125
-	createRegStringValue(HKEY_LOCAL_MACHINE,szregpath,SZREGSTR_DESCRIPTION,szasiodesc);
126
-
127
-	return 0;
128
-}
129
-
130
-
131
-LONG UnregisterAsioDriver (CLSID clsid,char *szdllname,char *szregname)
132
-{
133
-	LONG			rc;
134
-	HMODULE			hMod;
135
-	char			szregpath[MAX_PATH_LEN];
136
-	char			szModuleName[MAX_PATH_LEN];
137
-	char			szclsid[CLSID_STRING_LEN];
138
-	LPOLESTR		wszCLSID = NULL;
139
-
140
-
141
-	hMod = GetModuleHandle(szdllname);
142
-	if (!hMod) return ERRSREG_MODULE_NOT_FOUND;
143
-	szModuleName[0] = 0;
144
-	GetModuleFileName(hMod,szModuleName,MAX_PATH_LEN);
145
-	if (!szModuleName[0]) return ERRSREG_MODPATH_NOT_FOUND;
146
-	CharLower((LPTSTR)szModuleName);
147
-
148
-	rc = (LONG)StringFromCLSID(clsid,&wszCLSID) ;
149
-	if (rc != S_OK) return ERRSREG_STRING_FROM_CLSID;
150
-	rc = (LONG)WideCharToMultiByte(CP_ACP,0,(LPWSTR)wszCLSID,-1,szclsid,CLSID_STRING_LEN,0,0);
151
-	if (!rc) return ERRSREG_CHAR_TO_MULTIBYTE;
152
-
153
-
154
-	sprintf(szregpath,"%s\\%s",SZREGSTR_CLSID,szclsid);
155
-	rc = findRegPath(HKEY_CLASSES_ROOT,szregpath);
156
-	if (rc) {
157
-		// delete old regentry
158
-		sprintf(szregpath,"%s",SZREGSTR_CLSID);
159
-		deleteRegPath(HKEY_CLASSES_ROOT,szregpath,szclsid);
160
-	}
161
-
162
-
163
-	// HKEY_LOCAL_MACHINE\SOFTWARE\ASIO
164
-	sprintf(szregpath,"%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO);
165
-	rc = findRegPath(HKEY_LOCAL_MACHINE,szregpath);
166
-	if (rc) {
167
-		sprintf(szregpath,"%s\\%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO,szregname);
168
-		rc = findRegPath(HKEY_LOCAL_MACHINE,szregpath);
169
-		if (rc) {
170
-			sprintf(szregpath,"%s\\%s",SZREGSTR_SOFTWARE,SZREGSTR_ASIO);
171
-			deleteRegPath(HKEY_LOCAL_MACHINE,szregpath,szregname);
172
-		}
173
-	}
174
-
175
-	return 0;
176
-}
177
-
178
-
179
-// ------------------------------------------
180
-// Local Functions 
181
-// ------------------------------------------
182
-static LONG findRegPath (HKEY mainkey,char *szregpath)
183
-{
184
-	HKEY	hkey;
185
-	LONG 	cr,rc = -1;
186
-	
187
-	if (szregpath) {
188
-		if ((cr = RegOpenKey(mainkey,szregpath,&hkey)) == ERROR_SUCCESS) {
189
-			RegCloseKey(hkey);
190
-			rc = 1;
191
-		}
192
-		else rc = 0;
193
-	}
194
-
195
-	return rc;
196
-}
197
-
198
-static LONG createRegPath (HKEY mainkey,char *szregpath,char *sznewpath)
199
-{
200
-	HKEY	hkey,hksub;
201
-	LONG 	cr,rc = -1;
202
-	char	newregpath[MAX_PATH_LEN];
203
-	
204
-	sprintf(newregpath,"%s\\%s",szregpath,sznewpath);
205
-	if (!(cr = findRegPath(mainkey,newregpath))) {
206
-		if ((cr = RegOpenKey(mainkey,szregpath,&hkey)) == ERROR_SUCCESS) {
207
-			if ((cr = RegCreateKey(hkey,sznewpath,&hksub)) == ERROR_SUCCESS) {
208
-				RegCloseKey(hksub);
209
-				rc = 0;
210
-			}
211
-			RegCloseKey(hkey);
212
-		}
213
-	}
214
-	else if (cr > 0) rc = 0;
215
-
216
-	return rc;
217
-}
218
-
219
-static LONG createRegStringValue (HKEY mainkey,char *szregpath,char *valname,char *szvalstr)
220
-{
221
-	LONG	cr,rc = -1;
222
-	HKEY	hkey;
223
-
224
-	if (szregpath) {
225
-		if ((cr = RegOpenKey(mainkey,szregpath,&hkey)) == ERROR_SUCCESS) {
226
-			cr = RegSetValueEx(hkey,(LPCTSTR)valname,0,REG_SZ,(const BYTE *)szvalstr,(DWORD)strlen(szvalstr));
227
-			RegCloseKey(hkey);
228
-			if (cr == ERROR_SUCCESS) rc = 0;
229
-		}
230
-	} 
231
-
232
-	return rc;
233
-}
234
-
235
-
236
-static LONG getRegString (HKEY mainkey,char *szregpath,char *valname,LPVOID pval,DWORD vsize)
237
-{
238
-	HKEY	hkey;
239
-	LONG 	cr,rc = -1;
240
-	DWORD	hsize,htype;
241
-
242
-	if (szregpath) {
243
-		if ((cr = RegOpenKey(mainkey,szregpath,&hkey)) == ERROR_SUCCESS) {
244
-			cr = RegQueryValueEx(hkey,valname,0,&htype,0,&hsize);
245
-			if (cr == ERROR_SUCCESS) {
246
-				if (hsize <= vsize) {
247
-					cr = RegQueryValueEx(hkey,valname,0,&htype,(LPBYTE)pval,&hsize);
248
-					rc = 0;
249
-				}
250
-			}
251
-			RegCloseKey(hkey);
252
-		}
253
-	}
254
-	return rc;
255
-}
256
-
257
-static LPKEYLIST findAllSubKeys (HKEY hkey,HKEY hksub,DWORD index,char *keyname,LPKEYLIST kl)
258
-{
259
-	HKEY	hknew = 0;
260
-	char	*newkey;
261
-	LONG 	cr;
262
-
263
-	if (!hksub) {
264
-		cr = RegOpenKeyEx(hkey,(LPCTSTR)keyname,0,KEY_ALL_ACCESS,&hknew);
265
-		if (cr != ERROR_SUCCESS) return kl;
266
-	}
267
-	else hknew = hksub;
268
-		
269
-	cr = RegEnumKey(hknew,index,(LPTSTR)subkeybuf,MAX_PATH_LEN);
270
-	if (cr == ERROR_SUCCESS) {
271
-		newkey = new char[strlen(subkeybuf)+1];
272
-		strcpy(newkey,subkeybuf);
273
-
274
-		kl = findAllSubKeys(hknew,0,0,newkey,kl);
275
-		kl = findAllSubKeys(hkey,hknew,index+1,keyname,kl);
276
-		
277
-		return kl;
278
-
279
-	}	
280
-	
281
-	if (!kl->next) {
282
-		kl->next = new KEYLIST[1];
283
-		kl = kl->next;
284
-		kl->mainKey = hkey;
285
-		kl->subKey = hknew;
286
-		kl->keyname = keyname;
287
-		kl->next = 0;
288
-	}
289
-
290
-	return kl;
291
-}
292
-
293
-static LONG deleteRegPath (HKEY mainkey,char *szregpath,char *szdelpath)
294
-{
295
-	HKEY		hkey;
296
-	LONG 		cr,rc = -1;
297
-	KEYLIST		klist;
298
-	LPKEYLIST	pkl,k;
299
-	char		*keyname = 0;
300
-	
301
-	if ((cr = RegOpenKey(mainkey,szregpath,&hkey)) == ERROR_SUCCESS) {
302
-
303
-		keyname = new char[strlen(szdelpath)+1];
304
-		if (!keyname) {
305
-			RegCloseKey(hkey);
306
-			return rc;
307
-		}
308
-		strcpy(keyname,szdelpath);
309
-		klist.next = 0;
310
-
311
-		findAllSubKeys(hkey,0,0,keyname,&klist);
312
-	
313
-		if (klist.next) {
314
-			pkl = klist.next;
315
-	
316
-			while (pkl) {
317
-				RegCloseKey(pkl->subKey);
318
-				cr = RegDeleteKey(pkl->mainKey,pkl->keyname);
319
-				delete pkl->keyname;
320
-				k = pkl;
321
-				pkl = pkl->next;
322
-				delete k;
323
-			}
324
-			rc = 0;
325
-		}
326
-
327
-		RegCloseKey(hkey);
328
-	}
329
-
330
-	return rc;
331
-}
332
-

+ 0
- 326
src/hostapi/asio/ASIOSDK/common/wxdebug.h View File

@@ -1,326 +0,0 @@
1
-//==========================================================================;
2
-//
3
-//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4
-//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5
-//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
6
-//  PURPOSE.
7
-//
8
-//  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
9
-//
10
-//--------------------------------------------------------------------------;
11
-
12
-// Debugging facilities, January 1995
13
-
14
-#ifndef __WXDEBUG__
15
-#define __WXDEBUG__
16
-
17
-// Avoid conflict with MFC
18
-#undef ASSERT
19
-
20
-// This library provides fairly straight forward debugging functionality, this
21
-// is split into two main sections. The first is assertion handling, there are
22
-// three types of assertions provided here. The most commonly used one is the
23
-// ASSERT(condition) macro which will pop up a message box including the file
24
-// and line number if the condition evaluates to FALSE. Then there is the
25
-// EXECUTE_ASSERT macro which is the same as ASSERT except the condition will
26
-// still be executed in NON debug builds. The final type of assertion is the
27
-// KASSERT macro which is more suitable for pure (perhaps kernel) filters as
28
-// the condition is printed onto the debugger rather than in a message box.
29
-//
30
-// The other part of the debug module facilties is general purpose logging.
31
-// This is accessed by calling DbgLog(). The function takes a type and level
32
-// field which define the type of informational string you are presenting and
33
-// it's relative importance. The type field can be a combination (one or more)
34
-// of LOG_TIMING, LOG_TRACE, LOG_MEMORY, LOG_LOCKING and LOG_ERROR. The level
35
-// is a DWORD value where zero defines highest important. Use of zero as the
36
-// debug logging level is to be encouraged ONLY for major errors or events as
37
-// they will ALWAYS be displayed on the debugger. Other debug output has it's
38
-// level matched against the current debug output level stored in the registry
39
-// for this module and if less than the current setting it will be displayed.
40
-//
41
-// Each module or executable has it's own debug output level for each of the
42
-// five types. These are read in when the DbgInitialise function is called
43
-// for DLLs linking to STRMBASE.LIB this is done automatically when the DLL
44
-// is loaded, executables must call it explicitely with the module instance
45
-// handle given to them through the WINMAIN entry point. An executable must
46
-// also call DbgTerminate when they have finished to clean up the resources
47
-// the debug library uses, once again this is done automatically for DLLs
48
-
49
-// These are the five different categories of logging information
50
-
51
-enum {  LOG_TIMING = 0x01,    // Timing and performance measurements
52
-        LOG_TRACE = 0x02,     // General step point call tracing
53
-        LOG_MEMORY =  0x04,   // Memory and object allocation/destruction
54
-        LOG_LOCKING = 0x08,   // Locking/unlocking of critical sections
55
-        LOG_ERROR = 0x10 };   // Debug error notification
56
-
57
-enum {  CDISP_HEX = 0x01,
58
-        CDISP_DEC = 0x02};
59
-
60
-// For each object created derived from CBaseObject (in debug builds) we
61
-// create a descriptor that holds it's name (statically allocated memory)
62
-// and a cookie we assign it. We keep a list of all the active objects
63
-// we have registered so that we can dump a list of remaining objects
64
-
65
-typedef struct tag_ObjectDesc {
66
-    TCHAR *m_pName;
67
-    DWORD m_dwCookie;
68
-    tag_ObjectDesc *m_pNext;
69
-} ObjectDesc;
70
-
71
-#define DLLIMPORT __declspec(dllimport)
72
-#define DLLEXPORT __declspec(dllexport)
73
-
74
-#ifdef DEBUG
75
-
76
-    #define NAME(x) TEXT(x)
77
-
78
-    // These are used internally by the debug library (PRIVATE)
79
-
80
-    void DbgInitKeyLevels(HKEY hKey);
81
-    void DbgInitGlobalSettings();
82
-    void DbgInitModuleSettings();
83
-    void DbgInitModuleName();
84
-    DWORD DbgRegisterObjectCreation(TCHAR *pObjectName);
85
-    BOOL DbgRegisterObjectDestruction(DWORD dwCookie);
86
-
87
-    // These are the PUBLIC entry points
88
-
89
-    BOOL DbgCheckModuleLevel(DWORD Type,DWORD Level);
90
-    void DbgSetModuleLevel(DWORD Type,DWORD Level);
91
-
92
-    // Initialise the library with the module handle
93
-
94
-    void DbgInitialise(HINSTANCE hInst);
95
-    void DbgTerminate();
96
-
97
-    void DbgDumpObjectRegister();
98
-
99
-    // Display error and logging to the user
100
-
101
-    void DbgAssert(const TCHAR *pCondition,const TCHAR *pFileName,INT iLine);
102
-    void DbgBreakPoint(const TCHAR *pCondition,const TCHAR *pFileName,INT iLine);
103
-    void DbgKernelAssert(const TCHAR *pCondition,const TCHAR *pFileName,INT iLine);
104
-    void DbgLogInfo(DWORD Type,DWORD Level,const TCHAR *pFormat,...);
105
-    void DbgOutString(LPCTSTR psz);
106
-
107
-    //  Debug infinite wait stuff
108
-    DWORD DbgWaitForSingleObject(HANDLE h);
109
-    DWORD DbgWaitForMultipleObjects(DWORD nCount,
110
-                                    CONST HANDLE *lpHandles,
111
-                                    BOOL bWaitAll);
112
-    void DbgSetWaitTimeout(DWORD dwTimeout);
113
-
114
-#ifdef __strmif_h__
115
-    void DisplayType(LPSTR label, const AM_MEDIA_TYPE *pmtIn);
116
-#endif
117
-
118
-    #define KASSERT(_x_) if (!(_x_))         \
119
-        DbgKernelAssert(TEXT(#_x_),TEXT(__FILE__),__LINE__)
120
-
121
-    //  Break on the debugger without putting up a message box
122
-    //  message goes to debugger instead
123
-
124
-    #define KDbgBreak(_x_)                   \
125
-        DbgKernelAssert(TEXT(#_x_),TEXT(__FILE__),__LINE__)
126
-
127
-    #define ASSERT(_x_) if (!(_x_))         \
128
-        DbgAssert(TEXT(#_x_),TEXT(__FILE__),__LINE__)
129
-
130
-    //  Put up a message box informing the user of a halt
131
-    //  condition in the program
132
-
133
-    #define DbgBreak(_x_)                   \
134
-        DbgBreakPoint(TEXT(#_x_),TEXT(__FILE__),__LINE__)
135
-
136
-    #define EXECUTE_ASSERT(_x_) ASSERT(_x_)
137
-    #define DbgLog(_x_) DbgLogInfo _x_
138
-
139
-    // MFC style trace macros
140
-
141
-    #define NOTE(_x_)             DbgLog((LOG_TRACE,5,TEXT(_x_)));
142
-    #define NOTE1(_x_,a)          DbgLog((LOG_TRACE,5,TEXT(_x_),a));
143
-    #define NOTE2(_x_,a,b)        DbgLog((LOG_TRACE,5,TEXT(_x_),a,b));
144
-    #define NOTE3(_x_,a,b,c)      DbgLog((LOG_TRACE,5,TEXT(_x_),a,b,c));
145
-    #define NOTE4(_x_,a,b,c,d)    DbgLog((LOG_TRACE,5,TEXT(_x_),a,b,c,d));
146
-    #define NOTE5(_x_,a,b,c,d,e)  DbgLog((LOG_TRACE,5,TEXT(_x_),a,b,c,d,e));
147
-
148
-#else
149
-
150
-    // Retail builds make public debug functions inert  - WARNING the source
151
-    // files do not define or build any of the entry points in debug builds
152
-    // (public entry points compile to nothing) so if you go trying to call
153
-    // any of the private entry points in your source they won't compile
154
-
155
-    #define NAME(_x_) NULL
156
-
157
-    #define DbgInitialise(hInst)
158
-    #define DbgTerminate()
159
-    #define DbgLog(_x_)
160
-    #define DbgOutString(psz)
161
-
162
-    #define DbgRegisterObjectCreation(pObjectName)
163
-    #define DbgRegisterObjectDestruction(dwCookie)
164
-    #define DbgDumpObjectRegister()
165
-
166
-    #define DbgCheckModuleLevel(Type,Level)
167
-    #define DbgSetModuleLevel(Type,Level)
168
-
169
-    #define DbgWaitForSingleObject(h)  WaitForSingleObject(h, INFINITE)
170
-    #define DbgWaitForMultipleObjects(nCount, lpHandles, bWaitAll)     \
171
-               WaitForMultipleObjects(nCount, lpHandles, bWaitAll, INFINITE)
172
-    #define DbgSetWaitTimeout(dwTimeout)
173
-
174
-    #define KDbgBreak(_x_)
175
-    #define DbgBreak(_x_)
176
-
177
-    #define KASSERT(_x_)
178
-    #define ASSERT(_x_)
179
-    #define EXECUTE_ASSERT(_x_) _x_
180
-
181
-    // MFC style trace macros
182
-
183
-    #define NOTE(_x_)
184
-    #define NOTE1(_x_,a)
185
-    #define NOTE2(_x_,a,b)
186
-    #define NOTE3(_x_,a,b,c)
187
-    #define NOTE4(_x_,a,b,c,d)
188
-    #define NOTE5(_x_,a,b,c,d,e)
189
-
190
-    #define DisplayType(label, pmtIn)
191
-
192
-#endif
193
-
194
-
195
-// Checks a pointer which should be non NULL - can be used as follows.
196
-
197
-#define CheckPointer(p,ret) {if((p)==NULL) return (ret);}
198
-
199
-//   HRESULT Foo(VOID *pBar)
200
-//   {
201
-//       CheckPointer(pBar,E_INVALIDARG)
202
-//   }
203
-//
204
-//   Or if the function returns a boolean
205
-//
206
-//   BOOL Foo(VOID *pBar)
207
-//   {
208
-//       CheckPointer(pBar,FALSE)
209
-//   }
210
-
211
-// These validate pointers when symbol VFWROBUST is defined
212
-// This will normally be defined in debug not retail builds
213
-
214
-#ifdef DEBUG
215
-    #define VFWROBUST
216
-#endif
217
-
218
-#ifdef VFWROBUST
219
-
220
-    #define ValidateReadPtr(p,cb) \
221
-        {if(IsBadReadPtr((PVOID)p,cb) == TRUE) \
222
-            DbgBreak("Invalid read pointer");}
223
-
224
-    #define ValidateWritePtr(p,cb) \
225
-        {if(IsBadWritePtr((PVOID)p,cb) == TRUE) \
226
-            DbgBreak("Invalid write pointer");}
227
-
228
-    #define ValidateReadWritePtr(p,cb) \
229
-        {ValidateReadPtr(p,cb) ValidateWritePtr(p,cb)}
230
-
231
-    #define ValidateStringPtr(p) \
232
-        {if(IsBadStringPtr((LPCTSTR)p,INFINITE) == TRUE) \
233
-            DbgBreak("Invalid string pointer");}
234
-
235
-    #define ValidateStringPtrA(p) \
236
-        {if(IsBadStringPtrA((LPCSTR)p,INFINITE) == TRUE) \
237
-            DbgBreak("Invalid ANSII string pointer");}
238
-
239
-    #define ValidateStringPtrW(p) \
240
-        {if(IsBadStringPtrW((LPCWSTR)p,INFINITE) == TRUE) \
241
-            DbgBreak("Invalid UNICODE string pointer");}
242
-
243
-#else
244
-    #define ValidateReadPtr(p,cb)
245
-    #define ValidateWritePtr(p,cb)
246
-    #define ValidateReadWritePtr(p,cb)
247
-    #define ValidateStringPtr(p)
248
-    #define ValidateStringPtrA(p)
249
-    #define ValidateStringPtrW(p)
250
-#endif
251
-
252
-
253
-#ifdef _OBJBASE_H_
254
-
255
-    //  Outputting GUID names.  If you want to include the name
256
-    //  associated with a GUID (eg CLSID_...) then
257
-    //
258
-    //      GuidNames[yourGUID]
259
-    //
260
-    //  Returns the name defined in uuids.h as a string
261
-
262
-    typedef struct {
263
-        TCHAR   *szName;
264
-        GUID    guid;
265
-    } GUID_STRING_ENTRY;
266
-
267
-    class CGuidNameList {
268
-    public:
269
-        TCHAR *operator [] (const GUID& guid);
270
-    };
271
-
272
-    extern CGuidNameList GuidNames;
273
-
274
-#endif
275
-
276
-
277
-//  REMIND macro - generates warning as reminder to complete coding
278
-//  (eg) usage:
279
-//
280
-//  #pragma message (REMIND("Add automation support"))
281
-
282
-
283
-#define QUOTE(x) #x
284
-#define QQUOTE(y) QUOTE(y)
285
-#define REMIND(str) __FILE__ "(" QQUOTE(__LINE__) ") :  " str
286
-
287
-
288
-//  Hack to display objects in a useful format
289
-//
290
-//  eg If you want to display a LONGLONG ll in a debug string do (eg)
291
-//
292
-//  DbgLog((LOG_TRACE, n, TEXT("Value is %s"), (LPCTSTR)CDisp(ll, CDISP_HEX)));
293
-
294
-
295
-class CDispBasic
296
-{
297
-public:
298
-    CDispBasic() { m_pString = m_String; };
299
-    ~CDispBasic();
300
-protected:
301
-    PTCHAR m_pString;  // normally points to m_String... unless too much data
302
-    TCHAR m_String[50];
303
-};
304
-class CDisp : public CDispBasic
305
-{
306
-public:
307
-    CDisp(LONGLONG ll, int Format = CDISP_HEX); // Display a LONGLONG in CDISP_HEX or CDISP_DEC form
308
-    CDisp(REFCLSID clsid);      // Display a GUID
309
-    CDisp(double d);            // Display a floating point number
310
-#ifdef __strmif_h__
311
-#ifdef __STREAMS__
312
-    CDisp(CRefTime t);          // Display a Reference Time
313
-#endif
314
-    CDisp(IPin *pPin);          // Display a pin as {filter clsid}(pin name)
315
-#endif // __strmif_h__
316
-    ~CDisp();
317
-
318
-    //  Implement cast to (LPCTSTR) as parameter to logger
319
-    operator LPCTSTR()
320
-    {
321
-        return (LPCTSTR)m_pString;
322
-    };
323
-};
324
-
325
-#endif // __WXDEBUG__
326
-

+ 0
- 9
src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample.def View File

@@ -1,9 +0,0 @@
1
-LIBRARY			ASIOSample
2
-DESCRIPTION		'ASIO Sample Driver'
3
-PROTMODE
4
-EXPORTS	
5
-				DllMain
6
-				DllGetClassObject
7
-				DllCanUnloadNow
8
-				DllRegisterServer
9
-				DllUnregisterServer

+ 0
- 23
src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample.txt View File

@@ -1,23 +0,0 @@
1
-Asiosample
2
-
3
-This sample driver illustrates the implementation of an ASIO driver.
4
-
5
-
6
-
7
-Windows notes:
8
-
9
-For Windows a COM implementation is provided. The final driver can be
10
-installed in the system by dragging the asiosample.dll onto the
11
-regsvr32.exe in the windows\system directory.
12
-
13
-It is normal that the LNK4104 warning is issued for the following 4
14
-exported symbols:
15
-
16
-DllGetClassObject
17
-DllCanUnloadNow
18
-DllRegisterServer
19
-DllUnregisterServer
20
-
21
-
22
-Macintosh notes:
23
-The supplied project is created with CodeWarrior Pro 5.

+ 0
- 151
src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample/asiosample.dsp View File

@@ -1,151 +0,0 @@
1
-# Microsoft Developer Studio Project File - Name="asiosample" - Package Owner=<4>
2
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
3
-# ** DO NOT EDIT **
4
-
5
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
6
-
7
-CFG=asiosample - Win32 Debug
8
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
9
-!MESSAGE use the Export Makefile command and run
10
-!MESSAGE 
11
-!MESSAGE NMAKE /f "asiosample.mak".
12
-!MESSAGE 
13
-!MESSAGE You can specify a configuration when running NMAKE
14
-!MESSAGE by defining the macro CFG on the command line. For example:
15
-!MESSAGE 
16
-!MESSAGE NMAKE /f "asiosample.mak" CFG="asiosample - Win32 Debug"
17
-!MESSAGE 
18
-!MESSAGE Possible choices for configuration are:
19
-!MESSAGE 
20
-!MESSAGE "asiosample - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
21
-!MESSAGE "asiosample - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
22
-!MESSAGE 
23
-
24
-# Begin Project
25
-# PROP AllowPerConfigDependencies 0
26
-# PROP Scc_ProjName ""
27
-# PROP Scc_LocalPath ""
28
-CPP=cl.exe
29
-MTL=midl.exe
30
-RSC=rc.exe
31
-
32
-!IF  "$(CFG)" == "asiosample - Win32 Release"
33
-
34
-# PROP BASE Use_MFC 0
35
-# PROP BASE Use_Debug_Libraries 0
36
-# PROP BASE Output_Dir "Release"
37
-# PROP BASE Intermediate_Dir "Release"
38
-# PROP BASE Target_Dir ""
39
-# PROP Use_MFC 0
40
-# PROP Use_Debug_Libraries 0
41
-# PROP Output_Dir "Release"
42
-# PROP Intermediate_Dir "Release"
43
-# PROP Ignore_Export_Lib 0
44
-# PROP Target_Dir ""
45
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
46
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\..\..\Common" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
47
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
48
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
49
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
50
-# ADD RSC /l 0x409 /d "NDEBUG"
51
-BSC32=bscmake.exe
52
-# ADD BASE BSC32 /nologo
53
-# ADD BSC32 /nologo
54
-LINK32=link.exe
55
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
56
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  winmm.lib /nologo /subsystem:windows /dll /machine:I386
57
-
58
-!ELSEIF  "$(CFG)" == "asiosample - Win32 Debug"
59
-
60
-# PROP BASE Use_MFC 0
61
-# PROP BASE Use_Debug_Libraries 1
62
-# PROP BASE Output_Dir "Debug"
63
-# PROP BASE Intermediate_Dir "Debug"
64
-# PROP BASE Target_Dir ""
65
-# PROP Use_MFC 0
66
-# PROP Use_Debug_Libraries 1
67
-# PROP Output_Dir "Debug"
68
-# PROP Intermediate_Dir "Debug"
69
-# PROP Ignore_Export_Lib 0
70
-# PROP Target_Dir ""
71
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
72
-# ADD CPP /nologo /G5 /MTd /W3 /Gm /GX /Zi /Od /I "..\..\..\Common" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
73
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
74
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
75
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
76
-# ADD RSC /l 0x409 /d "_DEBUG"
77
-BSC32=bscmake.exe
78
-# ADD BASE BSC32 /nologo
79
-# ADD BSC32 /nologo
80
-LINK32=link.exe
81
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
82
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
83
-
84
-!ENDIF 
85
-
86
-# Begin Target
87
-
88
-# Name "asiosample - Win32 Release"
89
-# Name "asiosample - Win32 Debug"
90
-# Begin Group "Source Files"
91
-
92
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
93
-# Begin Source File
94
-
95
-SOURCE=..\asiosample.def
96
-# End Source File
97
-# Begin Source File
98
-
99
-SOURCE=..\asiosmpl.cpp
100
-# End Source File
101
-# Begin Source File
102
-
103
-SOURCE=..\..\..\common\combase.cpp
104
-# End Source File
105
-# Begin Source File
106
-
107
-SOURCE=..\..\..\common\dllentry.cpp
108
-# End Source File
109
-# Begin Source File
110
-
111
-SOURCE=..\..\..\common\register.cpp
112
-# End Source File
113
-# Begin Source File
114
-
115
-SOURCE=..\wintimer.cpp
116
-# End Source File
117
-# End Group
118
-# Begin Group "Header Files"
119
-
120
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
121
-# Begin Source File
122
-
123
-SOURCE=..\..\..\common\asio.h
124
-# End Source File
125
-# Begin Source File
126
-
127
-SOURCE=..\..\Common\Asiodrvr.h
128
-# End Source File
129
-# Begin Source File
130
-
131
-SOURCE=..\asiosmpl.h
132
-# End Source File
133
-# Begin Source File
134
-
135
-SOURCE=..\..\..\common\asiosys.h
136
-# End Source File
137
-# Begin Source File
138
-
139
-SOURCE=..\..\..\common\combase.h
140
-# End Source File
141
-# Begin Source File
142
-
143
-SOURCE=..\..\..\common\iasiodrv.h
144
-# End Source File
145
-# End Group
146
-# Begin Group "Resource Files"
147
-
148
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
149
-# End Group
150
-# End Target
151
-# End Project

+ 0
- 629
src/hostapi/asio/ASIOSDK/driver/asiosample/asiosample/asiosample.vcproj View File

@@ -1,629 +0,0 @@
1
-<?xml version="1.0" encoding="Windows-1252"?>
2
-<VisualStudioProject
3
-	ProjectType="Visual C++"
4
-	Version="8.00"
5
-	Name="asiosample"
6
-	ProjectGUID="{D514DF49-CE45-4F09-9BAD-8FDA4BEF4DE3}"
7
-	RootNamespace="asiosample"
8
-	>
9
-	<Platforms>
10
-		<Platform
11
-			Name="Win32"
12
-		/>
13
-		<Platform
14
-			Name="x64"
15
-		/>
16
-	</Platforms>
17
-	<ToolFiles>
18
-	</ToolFiles>
19
-	<Configurations>
20
-		<Configuration
21
-			Name="Debug|Win32"
22
-			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
23
-			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
24
-			ConfigurationType="2"
25
-			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
26
-			UseOfMFC="0"
27
-			ATLMinimizesCRunTimeLibraryUsage="false"
28
-			>
29
-			<Tool
30
-				Name="VCPreBuildEventTool"
31
-			/>
32
-			<Tool
33
-				Name="VCCustomBuildTool"
34
-			/>
35
-			<Tool
36
-				Name="VCXMLDataGeneratorTool"
37
-			/>
38
-			<Tool
39
-				Name="VCWebServiceProxyGeneratorTool"
40
-			/>
41
-			<Tool
42
-				Name="VCMIDLTool"
43
-				PreprocessorDefinitions="_DEBUG"
44
-				MkTypLibCompatible="true"
45
-				SuppressStartupBanner="true"
46
-				TargetEnvironment="1"
47
-				TypeLibraryName=".\Debug/asiosample.tlb"
48
-				HeaderFileName=""
49
-			/>
50
-			<Tool
51
-				Name="VCCLCompilerTool"
52
-				Optimization="0"
53
-				AdditionalIncludeDirectories="..\..\..\Common"
54
-				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE"
55
-				MinimalRebuild="true"
56
-				BasicRuntimeChecks="3"
57
-				RuntimeLibrary="1"
58
-				WarningLevel="3"
59
-				SuppressStartupBanner="true"
60
-				DebugInformationFormat="3"
61
-			/>
62
-			<Tool
63
-				Name="VCManagedResourceCompilerTool"
64
-			/>
65
-			<Tool
66
-				Name="VCResourceCompilerTool"
67
-				PreprocessorDefinitions="_DEBUG"
68
-				Culture="1033"
69
-			/>
70
-			<Tool
71
-				Name="VCPreLinkEventTool"
72
-			/>
73
-			<Tool
74
-				Name="VCLinkerTool"
75
-				AdditionalDependencies="odbc32.lib odbccp32.lib winmm.lib"
76
-				OutputFile="$(PlatformName)\$(ConfigurationName)\asiosample.dll"
77
-				LinkIncremental="2"
78
-				SuppressStartupBanner="true"
79
-				ModuleDefinitionFile="..\asiosample.def"
80
-				GenerateDebugInformation="true"
81
-				SubSystem="2"
82
-				TargetMachine="1"
83
-			/>
84
-			<Tool
85
-				Name="VCALinkTool"
86
-			/>
87
-			<Tool
88
-				Name="VCManifestTool"
89
-			/>
90
-			<Tool
91
-				Name="VCXDCMakeTool"
92
-			/>
93
-			<Tool
94
-				Name="VCBscMakeTool"
95
-				SuppressStartupBanner="true"
96
-			/>
97
-			<Tool
98
-				Name="VCFxCopTool"
99
-			/>
100
-			<Tool
101
-				Name="VCAppVerifierTool"
102
-			/>
103
-			<Tool
104
-				Name="VCWebDeploymentTool"
105
-			/>
106
-			<Tool
107
-				Name="VCPostBuildEventTool"
108
-			/>
109
-		</Configuration>
110
-		<Configuration
111
-			Name="Debug|x64"
112
-			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
113
-			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
114
-			ConfigurationType="2"
115
-			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
116
-			UseOfMFC="0"
117
-			ATLMinimizesCRunTimeLibraryUsage="false"
118
-			>
119
-			<Tool
120
-				Name="VCPreBuildEventTool"
121
-			/>
122
-			<Tool
123
-				Name="VCCustomBuildTool"
124
-			/>
125
-			<Tool
126
-				Name="VCXMLDataGeneratorTool"
127
-			/>
128
-			<Tool
129
-				Name="VCWebServiceProxyGeneratorTool"
130
-			/>
131
-			<Tool
132
-				Name="VCMIDLTool"
133
-				PreprocessorDefinitions="_DEBUG"
134
-				MkTypLibCompatible="true"
135
-				SuppressStartupBanner="true"
136
-				TargetEnvironment="3"
137
-				TypeLibraryName=".\Debug/asiosample.tlb"
138
-				HeaderFileName=""
139
-			/>
140
-			<Tool
141
-				Name="VCCLCompilerTool"
142
-				Optimization="0"
143
-				AdditionalIncludeDirectories="..\..\..\Common"
144
-				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE"
145
-				MinimalRebuild="true"
146
-				BasicRuntimeChecks="3"
147
-				RuntimeLibrary="1"
148
-				UsePrecompiledHeader="0"
149
-				WarningLevel="3"
150
-				SuppressStartupBanner="true"
151
-				DebugInformationFormat="3"
152
-			/>
153
-			<Tool
154
-				Name="VCManagedResourceCompilerTool"
155
-			/>
156
-			<Tool
157
-				Name="VCResourceCompilerTool"
158
-				PreprocessorDefinitions="_DEBUG"
159
-				Culture="1033"
160
-			/>
161
-			<Tool
162
-				Name="VCPreLinkEventTool"
163
-			/>
164
-			<Tool
165
-				Name="VCLinkerTool"
166
-				AdditionalDependencies="odbc32.lib odbccp32.lib winmm.lib"
167
-				OutputFile="$(PlatformName)\$(ConfigurationName)\asiosample.dll"
168
-				LinkIncremental="2"
169
-				SuppressStartupBanner="true"
170
-				ModuleDefinitionFile="..\asiosample.def"
171
-				GenerateDebugInformation="true"
172
-				SubSystem="2"
173
-				TargetMachine="17"
174
-			/>
175
-			<Tool
176
-				Name="VCALinkTool"
177
-			/>
178
-			<Tool
179
-				Name="VCManifestTool"
180
-			/>
181
-			<Tool
182
-				Name="VCXDCMakeTool"
183
-			/>
184
-			<Tool
185
-				Name="VCBscMakeTool"
186
-				SuppressStartupBanner="true"
187
-			/>
188
-			<Tool
189
-				Name="VCFxCopTool"
190
-			/>
191
-			<Tool
192
-				Name="VCAppVerifierTool"
193
-			/>
194
-			<Tool
195
-				Name="VCWebDeploymentTool"
196