Mercurial > hg > aimc
comparison src/Modules/Input/ModuleFileInput.cc @ 151:45ab8d4613ad
removed a debug printout
author | hamel.phil |
---|---|
date | Thu, 06 Jan 2011 16:30:25 +0000 |
parents | 9425901c60a6 |
children | 9fcf55c040fe |
comparison
equal
deleted
inserted
replaced
150:9425901c60a6 | 151:45ab8d4613ad |
---|---|
101 vector<float> buffer; | 101 vector<float> buffer; |
102 buffer.resize(buffer_length_ * audio_channels_); | 102 buffer.resize(buffer_length_ * audio_channels_); |
103 | 103 |
104 // Read buffersize bytes into buffer | 104 // Read buffersize bytes into buffer |
105 read = sf_readf_float(file_handle_, &buffer[0], buffer_length_); | 105 read = sf_readf_float(file_handle_, &buffer[0], buffer_length_); |
106 for (int i = 0; i < 10; i++) { | 106 |
107 LOG_INFO(_T("%i: %f, %f"),i,buffer[2*i],buffer[2*i+1]); | |
108 } | |
109 // Place the contents of the buffer into the signal bank | 107 // Place the contents of the buffer into the signal bank |
110 int counter = 0; | 108 int counter = 0; |
111 for (int i = 0; i < read; ++i) { | 109 for (int i = 0; i < read; ++i) { |
112 for (int c = 0; c < audio_channels_; ++c) { | 110 for (int c = 0; c < audio_channels_; ++c) { |
113 output_.set_sample(c, i, buffer[counter]); | 111 output_.set_sample(c, i, buffer[counter]); |