Mercurial > hg > svapp
comparison audioio/ClipMixer.cpp @ 397:f747be6743ab
Debug bits
| author | Chris Cannam |
|---|---|
| date | Wed, 13 Aug 2014 16:44:50 +0100 |
| parents | 0876ea394902 |
| children | b0b49da13975 |
comparison
equal
deleted
inserted
replaced
| 396:2f54917f1599 | 397:f747be6743ab |
|---|---|
| 128 } | 128 } |
| 129 | 129 |
| 130 std::vector<NoteStart> remaining; | 130 std::vector<NoteStart> remaining; |
| 131 | 131 |
| 132 float *levels = new float[m_channels]; | 132 float *levels = new float[m_channels]; |
| 133 | |
| 134 #ifdef DEBUG_CLIP_MIXER | |
| 135 cerr << "ClipMixer::mix: have " << m_playing.size() << " playing note(s)" | |
| 136 << " and " << endingNotes.size() << " note(s) ending here" | |
| 137 << endl; | |
| 138 #endif | |
| 133 | 139 |
| 134 foreach (NoteStart note, m_playing) { | 140 foreach (NoteStart note, m_playing) { |
| 135 | 141 |
| 136 for (int c = 0; c < m_channels; ++c) { | 142 for (int c = 0; c < m_channels; ++c) { |
| 137 levels[c] = note.level * gain; | 143 levels[c] = note.level * gain; |
