diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-05-08 15:35:46 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-05-08 15:35:46 +0000 |
commit | becca50a1aedd8b5fde673c36ffa1dd72463f682 (patch) | |
tree | a199599e645f3c8d874cc1e399205d5a8d29c22f /usr.bin/aucat/dev.h | |
parent | a463431f89ea7d80f5af11e9be263eae14ec49d2 (diff) |
prime play buffers as soon as the device is opened, otherwise a
midi client could start it with empty buffers, in turn hurting
audio clients.
Diffstat (limited to 'usr.bin/aucat/dev.h')
-rw-r--r-- | usr.bin/aucat/dev.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/aucat/dev.h b/usr.bin/aucat/dev.h index ef9d1475dca..0e0f83ca198 100644 --- a/usr.bin/aucat/dev.h +++ b/usr.bin/aucat/dev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.h,v 1.22 2010/05/02 11:54:26 ratchov Exp $ */ +/* $OpenBSD: dev.h,v 1.23 2010/05/08 15:35:45 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -21,6 +21,7 @@ struct aproc; struct aparams; struct abuf; +extern unsigned dev_reqprime; extern unsigned dev_bufsz, dev_round, dev_rate; extern struct aparams dev_ipar, dev_opar; extern struct aproc *dev_mix, *dev_sub, *dev_midi, *dev_submon, *dev_mon; @@ -31,7 +32,7 @@ void dev_close(void); int dev_ref(void); void dev_unref(void); void dev_done(void); -void dev_wakeup(int); +void dev_wakeup(void); void dev_init_thru(void); void dev_init_loop(struct aparams *, struct aparams *, unsigned); void dev_init_sio(char *, unsigned, |