chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge playrtp readahead reduction
[disorder]
/
clients
/
playrtp.c
diff --git
a/clients/playrtp.c
b/clients/playrtp.c
index 4ea5e3b43bd782b1f8f72c83f61bdc4a72e815a0..96474376520193efdb6418dddd33e3d26d537ca8 100644
(file)
--- a/
clients/playrtp.c
+++ b/
clients/playrtp.c
@@
-104,7
+104,7
@@
unsigned minbuffer = 2 * 44100 / 10; /* 0.2 seconds */
/** @brief Buffer high watermark
*
* We'll only start playing when this many samples are available. */
/** @brief Buffer high watermark
*
* We'll only start playing when this many samples are available. */
-static unsigned readahead =
2 * 2 * 44100;
+static unsigned readahead =
44100; /* 0.5 seconds */
/** @brief Maximum buffer size
*
/** @brief Maximum buffer size
*
@@
-590,7
+590,7
@@
int main(int argc, char **argv) {
mem_init();
if(!setlocale(LC_CTYPE, "")) fatal(errno, "error calling setlocale");
mem_init();
if(!setlocale(LC_CTYPE, "")) fatal(errno, "error calling setlocale");
- backend =
&UAUDIO_DEFAULT
;
+ backend =
uaudio_apis[0]
;
while((n = getopt_long(argc, argv, "hVdD:m:b:x:L:R:M:aocC:re:", options, 0)) >= 0) {
switch(n) {
case 'h': help();
while((n = getopt_long(argc, argv, "hVdD:m:b:x:L:R:M:aocC:re:", options, 0)) >= 0) {
switch(n) {
case 'h': help();