chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Larger silent interval for pauses; spinning in sub-millisecond
[disorder]
/
lib
/
uaudio-thread.c
diff --git
a/lib/uaudio-thread.c
b/lib/uaudio-thread.c
index 12a863685e3be4aa037534bc6beece47ba68e833..f04b84bebe02b8d2084fd4127c98b424673f8ffd 100644
(file)
--- a/
lib/uaudio-thread.c
+++ b/
lib/uaudio-thread.c
@@
-153,7
+153,7
@@
static void *uaudio_collect_thread_fn(void attribute((unused)) *arg) {
static void *uaudio_play_thread_fn(void attribute((unused)) *arg) {
int resync = 1;
unsigned last_flags = 0;
static void *uaudio_play_thread_fn(void attribute((unused)) *arg) {
int resync = 1;
unsigned last_flags = 0;
- unsigned char zero[uaudio_thread_m
in
* uaudio_sample_size];
+ unsigned char zero[uaudio_thread_m
ax
* uaudio_sample_size];
memset(zero, 0, sizeof zero);
while(uaudio_thread_started) {
memset(zero, 0, sizeof zero);
while(uaudio_thread_started) {
@@
-163,7
+163,7
@@
static void *uaudio_play_thread_fn(void attribute((unused)) *arg) {
unsigned flags = UAUDIO_PAUSED;
if(last_flags & UAUDIO_PLAYING)
flags |= UAUDIO_PAUSE;
unsigned flags = UAUDIO_PAUSED;
if(last_flags & UAUDIO_PLAYING)
flags |= UAUDIO_PAUSE;
- uaudio_thread_play_callback(zero, uaudio_thread_m
in
,
+ uaudio_thread_play_callback(zero, uaudio_thread_m
ax
,
last_flags = flags);
/* We expect the play callback to block for a reasonable period */
pthread_mutex_lock(&uaudio_thread_lock);
last_flags = flags);
/* We expect the play callback to block for a reasonable period */
pthread_mutex_lock(&uaudio_thread_lock);