summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 862ddc111..ed9594692 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -780,9 +780,15 @@ void
AudioBuffers::make_silent ()
{
for (int i = 0; i < _channels; ++i) {
- for (int j = 0; j < _frames; ++j) {
- _data[i][j] = 0;
- }
+ make_silent (i);
+ }
+}
+
+void
+AudioBuffers::make_silent (int c)
+{
+ for (int i = 0; i < _frames; ++i) {
+ _data[c][i] = 0;
}
}