Update main.c print buffer

fc-2
Alan Johnston 11 months ago committed by GitHub
parent 1fb6cda81e
commit 83b91ee4b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1980,7 +1980,7 @@ void write_wave(int i, short int *buffer)
else
// buffer[ctr++] = (short int)(amplitude * 0.4 * phase * sin((float)(2*M_PI*i*freq_Hz/S_RATE))); buffer[ctr++] = (short int)(amplitude * phase * sin((float)(2*M_PI*i*freq_Hz/S_RATE)));
buffer[ctr++] = (short int)(phase * sin_map[ctr % sin_samples]); }
// printf("%d %d \n", i, buffer[ctr - 1]);
printf("%d %d \n", i, buffer[ctr - 1]);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.