/[pcsx2_0.9.7]/trunk/3rdparty/portaudio/src/common/pa_skeleton.c
ViewVC logotype

Diff of /trunk/3rdparty/portaudio/src/common/pa_skeleton.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/3rdparty/portaudio/src/common/pa_skeleton.c	2010/11/12 00:35:47	272
+++ trunk/3rdparty/portaudio/src/common/pa_skeleton.c	2010/11/12 01:10:22	273
@@ -28,13 +28,13 @@
  */
 
 /*
- * The text above constitutes the entire PortAudio license; however,
+ * The text above constitutes the entire PortAudio license; however, 
  * the PortAudio community also makes the following non-binding requests:
  *
  * Any person wishing to distribute modifications to the Software is
  * requested to send the modifications to the original developer so that
- * they can be incorporated into the canonical version. It is also
- * requested that these non-binding requests be included along with the
+ * they can be incorporated into the canonical version. It is also 
+ * requested that these non-binding requests be included along with the 
  * license above.
  */
 
@@ -152,10 +152,10 @@
     (*hostApi)->info.defaultInputDevice = paNoDevice;  /* IMPLEMENT ME */
     (*hostApi)->info.defaultOutputDevice = paNoDevice; /* IMPLEMENT ME */
 
-    (*hostApi)->info.deviceCount = 0;
+    (*hostApi)->info.deviceCount = 0;  
 
     deviceCount = 0; /* IMPLEMENT ME */
-
+    
     if( deviceCount > 0 )
     {
         (*hostApi)->deviceInfos = (PaDeviceInfo**)PaUtil_GroupAllocateMemory(
@@ -193,14 +193,14 @@
 
             deviceInfo->maxInputChannels = 0;  /* IMPLEMENT ME */
             deviceInfo->maxOutputChannels = 0;  /* IMPLEMENT ME */
-
+            
             deviceInfo->defaultLowInputLatency = 0.;  /* IMPLEMENT ME */
             deviceInfo->defaultLowOutputLatency = 0.;  /* IMPLEMENT ME */
             deviceInfo->defaultHighInputLatency = 0.;  /* IMPLEMENT ME */
-            deviceInfo->defaultHighOutputLatency = 0.;  /* IMPLEMENT ME */
+            deviceInfo->defaultHighOutputLatency = 0.;  /* IMPLEMENT ME */  
 
             deviceInfo->defaultSampleRate = 0.; /* IMPLEMENT ME */
-
+            
             (*hostApi)->deviceInfos[i] = deviceInfo;
             ++(*hostApi)->info.deviceCount;
         }
@@ -231,7 +231,7 @@
             PaUtil_FreeAllAllocations( skeletonHostApi->allocations );
             PaUtil_DestroyAllocationGroup( skeletonHostApi->allocations );
         }
-
+                
         PaUtil_FreeMemory( skeletonHostApi );
     }
     return result;
@@ -264,7 +264,7 @@
 {
     int inputChannelCount, outputChannelCount;
     PaSampleFormat inputSampleFormat, outputSampleFormat;
-
+    
     if( inputParameters )
     {
         inputChannelCount = inputParameters->channelCount;
@@ -274,7 +274,7 @@
             this implementation doesn't support any custom sample formats */
         if( inputSampleFormat & paCustomFormat )
             return paSampleFormatNotSupported;
-
+            
         /* unless alternate device specification is supported, reject the use of
             paUseHostApiSpecificDeviceSpecification */
 
@@ -303,7 +303,7 @@
             this implementation doesn't support any custom sample formats */
         if( outputSampleFormat & paCustomFormat )
             return paSampleFormatNotSupported;
-
+            
         /* unless alternate device specification is supported, reject the use of
             paUseHostApiSpecificDeviceSpecification */
 
@@ -322,7 +322,7 @@
     {
         outputChannelCount = 0;
     }
-
+    
     /*
         IMPLEMENT ME:
 
@@ -420,7 +420,7 @@
     {
         outputChannelCount = outputParameters->channelCount;
         outputSampleFormat = outputParameters->sampleFormat;
-
+        
         /* unless alternate device specification is supported, reject the use of
             paUseHostApiSpecificDeviceSpecification */
 
@@ -499,10 +499,10 @@
 
 
     /* we assume a fixed host buffer size in this example, but the buffer processor
-        can also support bounded and unknown host buffer sizes by passing
+        can also support bounded and unknown host buffer sizes by passing 
         paUtilBoundedHostBufferSize or paUtilUnknownHostBufferSize instead of
         paUtilFixedHostBufferSize below. */
-
+        
     result =  PaUtil_InitializeBufferProcessor( &stream->bufferProcessor,
               inputChannelCount, inputSampleFormat, hostInputSampleFormat,
               outputChannelCount, outputSampleFormat, hostOutputSampleFormat,
@@ -523,7 +523,7 @@
             PaUtil_GetBufferProcessorOutputLatency(&stream->bufferProcessor);
     stream->streamRepresentation.streamInfo.sampleRate = sampleRate;
 
-
+    
     /*
         IMPLEMENT ME:
             - additional stream setup + opening
@@ -545,7 +545,7 @@
 /*
     ExampleHostProcessingLoop() illustrates the kind of processing which may
     occur in a host implementation.
-
+ 
 */
 static void ExampleHostProcessingLoop( void *inputBuffer, void *outputBuffer, void *userData )
 {
@@ -553,9 +553,9 @@
     PaStreamCallbackTimeInfo timeInfo = {0,0,0}; /* IMPLEMENT ME */
     int callbackResult;
     unsigned long framesProcessed;
-
+    
     PaUtil_BeginCpuLoadMeasurement( &stream->cpuLoadMeasurer );
-
+    
     /*
         IMPLEMENT ME:
             - generate timing information
@@ -576,7 +576,7 @@
         or a mixture, you will want to call PaUtil_SetInterleaved*Channels(),
         PaUtil_SetNonInterleaved*Channel() or PaUtil_Set*Channel() here.
     */
-
+    
     PaUtil_SetInputFrameCount( &stream->bufferProcessor, 0 /* default to host buffer size */ );
     PaUtil_SetInterleavedInputChannels( &stream->bufferProcessor,
             0, /* first channel of inputBuffer is channel 0 */
@@ -598,7 +598,7 @@
     callbackResult = paContinue;
     framesProcessed = PaUtil_EndBufferProcessing( &stream->bufferProcessor, &callbackResult );
 
-
+    
     /*
         If you need to byte swap or shift outputBuffer to convert it to
         host format, do it here.
@@ -694,7 +694,7 @@
 
     /* suppress unused variable warnings */
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior */
 
     return result;
@@ -707,7 +707,7 @@
 
     /* suppress unused variable warnings */
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior */
 
     return 0;
@@ -720,7 +720,7 @@
 
     /* suppress unused variable warnings */
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior */
 
     return 0;
@@ -733,7 +733,7 @@
 
     /* suppress unused variable warnings */
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior*/
 
     return 0;
@@ -764,7 +764,7 @@
     (void) buffer;
     (void) frames;
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior*/
 
     return paNoError;
@@ -781,7 +781,7 @@
     (void) buffer;
     (void) frames;
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior*/
 
     return paNoError;
@@ -794,7 +794,7 @@
 
     /* suppress unused variable warnings */
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior*/
 
     return 0;
@@ -807,7 +807,7 @@
 
     /* suppress unused variable warnings */
     (void) stream;
-
+    
     /* IMPLEMENT ME, see portaudio.h for required behavior*/
 
     return 0;

 

  ViewVC Help
Powered by ViewVC 1.1.22