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);