Browse Source

paex_read_write_wire: fix crossed initialization

MinGW complained.

Fixes ticket #256
tags/pa_stable_v190600_20161030
Phil Burk 2 years ago
parent
commit
f275c76ca9
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      examples/paex_read_write_wire.c

+ 2
- 1
examples/paex_read_write_wire.c View File

@@ -95,6 +95,7 @@ int main(void)
95 95
     char *sampleBlock = NULL;
96 96
     int i;
97 97
     int numBytes;
98
+    int numChannels;
98 99
 
99 100
     printf("patest_read_write_wire.c\n"); fflush(stdout);
100 101
     printf("sizeof(int) = %lu\n", sizeof(int)); fflush(stdout);
@@ -117,7 +118,7 @@ int main(void)
117 118
     printf( "     LL: %g s\n", outputInfo->defaultLowOutputLatency );
118 119
     printf( "     HL: %g s\n", outputInfo->defaultHighOutputLatency );
119 120
 
120
-    int numChannels = inputInfo->maxInputChannels < outputInfo->maxOutputChannels
121
+    numChannels = inputInfo->maxInputChannels < outputInfo->maxOutputChannels
121 122
             ? inputInfo->maxInputChannels : outputInfo->maxOutputChannels;
122 123
     printf( "Num channels = %d.\n", numChannels );
123 124
 

Loading…
Cancel
Save