changeset 25646:01f762da9c87

Simplify: use memset
author reimar
date Fri, 11 Jan 2008 20:23:46 +0000
parents 56f7c73054a7
children e93a3c68757f
files libao2/ao_jack.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_jack.c	Fri Jan 11 20:12:04 2008 +0000
+++ b/libao2/ao_jack.c	Fri Jan 11 20:23:46 2008 +0000
@@ -164,10 +164,9 @@
  * \param num_bufs number of buffers
  */
 static void silence(float **bufs, int cnt, int num_bufs) {
-  int i, j;
-  for (i = 0; i < cnt; i++)
-    for (j = 0; j < num_bufs; j++)
-      bufs[j][i] = 0;
+  int i;
+  for (i = 0; i < num_bufs; i++)
+    memset(bufs[i], 0, cnt * sizeof(float));
 }
 
 /**