Explorar el Código

Initialize all di_inlist struct members

Neal Wilson hace 10 años
padre
commit
6faf2b0b24
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/dataqsdk.w

+ 1
- 1
src/dataqsdk.w Ver fichero

339
 	sampleRate = di_sample_rate(sampleRate * channels * 40, &oversample,
339
 	sampleRate = di_sample_rate(sampleRate * channels * 40, &oversample,
340
 	                            &burstDivisor);
340
 	                            &burstDivisor);
341
 	buffer = new qint16[(int)sampleRate];
341
 	buffer = new qint16[(int)sampleRate];
342
-	di_inlist_struct inlist[16] = {{0}};
342
+	di_inlist_struct inlist[16] = {{0, 0, 0, 0, 0, 0, 0, 0}};
343
 	for(unsigned short i = 0; i < channels; i++)
343
 	for(unsigned short i = 0; i < channels; i++)
344
 	{
344
 	{
345
 		inlist[i].chan = i;
345
 		inlist[i].chan = i;

Loading…
Cancelar
Guardar