From d7f5455a5ed0f5f9b3a3367c110e02c1f23d43a4 Mon Sep 17 00:00:00 2001 From: "Gun.io Whitespace Robot" Date: Fri, 16 Dec 2011 13:50:34 -0500 Subject: [PATCH] Remove whitespace [Gun.io WhitespaceBot] --- src/CorrelationsScreenGenerator.cc | 4 ++-- src/SlidingWindow.cc | 2 +- src/displaced_sound.cc | 2 +- src/tymp-corr.cc | 2 +- src/tymp-id.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/CorrelationsScreenGenerator.cc b/src/CorrelationsScreenGenerator.cc index 10d6709..9314d04 100644 --- a/src/CorrelationsScreenGenerator.cc +++ b/src/CorrelationsScreenGenerator.cc @@ -8,9 +8,9 @@ namespace tympani { CorrelationsScreenGenerator::CorrelationsScreenGenerator(int samples) - : samples_(samples), max_(1) {} + : samples_(samples), max_(1) {} -void CorrelationsScreenGenerator::draw(SDL_Surface *screen, +void CorrelationsScreenGenerator::draw(SDL_Surface *screen, const int *corr) { lock_if_necessary(screen); draw_background(screen); diff --git a/src/SlidingWindow.cc b/src/SlidingWindow.cc index 91af0df..cb461e5 100644 --- a/src/SlidingWindow.cc +++ b/src/SlidingWindow.cc @@ -10,7 +10,7 @@ namespace tympani { SlidingWindow::SlidingWindow(int width) : width_(width), count_(0), - left_(NULL), + left_(NULL), right_(NULL) { left_ = new int[width_]; right_ = new int[width_]; diff --git a/src/displaced_sound.cc b/src/displaced_sound.cc index c5934c2..cf4ecc0 100644 --- a/src/displaced_sound.cc +++ b/src/displaced_sound.cc @@ -37,5 +37,5 @@ int main(int argc, char **argv) { count++; } file.writef(buf, 4096); - } + } } diff --git a/src/tymp-corr.cc b/src/tymp-corr.cc index ee737e2..1f4ca0f 100644 --- a/src/tymp-corr.cc +++ b/src/tymp-corr.cc @@ -88,7 +88,7 @@ struct LoopContext initializeContext(struct Args args) { return context; } -int readFrames(portaudio::BlockingStream *in, int *buf, +int readFrames(portaudio::BlockingStream *in, int *buf, int max_size, int frame_size) { int max_frames_to_read = max_size / frame_size; int min_frames_to_read = in->sampleRate() / 24; diff --git a/src/tymp-id.c b/src/tymp-id.c index 7760737..2e19f71 100644 --- a/src/tymp-id.c +++ b/src/tymp-id.c @@ -5,10 +5,10 @@ int main(int argc, char **argv) { SNDFILE *file; SF_INFO sfinfo; - + sfinfo.format = 0; file = sf_open(argv[1], SFM_READ, &sfinfo); - + printf("frames: %d\n", sfinfo.frames); printf("samplerate: %d\n", sfinfo.samplerate); printf("channels: %d\n", sfinfo.channels);