chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e9b635a
)
dump silence too
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 9 Dec 2007 14:09:32 +0000
(14:09 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 9 Dec 2007 14:09:32 +0000
(14:09 +0000)
clients/playrtp-coreaudio.c
patch
|
blob
|
blame
|
history
diff --git
a/clients/playrtp-coreaudio.c
b/clients/playrtp-coreaudio.c
index 689cdbd1a60cc456e9a6ff21569a7ec5b0b7a24f..c0f18193eee5fe37d27a41b3c46032c3bc13a113 100644
(file)
--- a/
clients/playrtp-coreaudio.c
+++ b/
clients/playrtp-coreaudio.c
@@
-90,6
+90,14
@@
static OSStatus adioproc
next_timestamp += samples_available;
samplesOut += samples_available;
samplesOutLeft -= samples_available;
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;
}
}
++ab;