add debugging for current mixer crash

This commit is contained in:
Stephen Birarda 2013-05-29 10:52:20 -07:00
parent a3a5241672
commit ad95190e15

View file

@ -247,6 +247,9 @@ int main(int argc, const char* argv[]) {
plateauAdditionOfSamples(goodChannel[s], currentSample);
if (s + numSamplesDelay < BUFFER_LENGTH_SAMPLES_PER_CHANNEL) {
printf("Attemping to grab a sample at %d\n", s + numSamplesDelay);
printf("The sample here is %d\n", delayedChannel[s + numSamplesDelay]);
plateauAdditionOfSamples(delayedChannel[s + numSamplesDelay],
currentSample * weakChannelAmplitudeRatio);
}