chiark / gitweb /
dump silence too
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 9 Dec 2007 14:09:32 +0000 (14:09 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 9 Dec 2007 14:09:32 +0000 (14:09 +0000)
clients/playrtp-coreaudio.c

index 689cdbd..c0f1819 100644 (file)
@@ -90,6 +90,14 @@ static OSStatus adioproc
         next_timestamp += samples_available;
         samplesOut += samples_available;
         samplesOutLeft -= samples_available;
+        if(dump_buffer) {
+          size_t n;
+
+          for(n = 0; n < samples_available; ++n) {
+            dump_buffer[dump_index++] = 0;
+            dump_index %= dump_size;
+          }
+        }
       }
     }
     ++ab;