summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/aproc.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-08-26 08:28:22 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-08-26 08:28:22 +0000
commit876c092c9bb8f29908740d38aad602425ba78e11 (patch)
treef2be3320bc9bfea1d2cec97b6b8cd2ee0d2296e9 /usr.bin/aucat/aproc.h
parentb9fc547357083462411a831a3b9a8422c172b9f6 (diff)
when allocating the midi channel for the volume control of a new
client, pick the oldest unused channel rather than the first found. This way new clients don't reuse channels of recently used applications, thus improving a lot the client<->channel affinity.
Diffstat (limited to 'usr.bin/aucat/aproc.h')
-rw-r--r--usr.bin/aucat/aproc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/aucat/aproc.h b/usr.bin/aucat/aproc.h
index 6911d849473..f63ed1aff35 100644
--- a/usr.bin/aucat/aproc.h
+++ b/usr.bin/aucat/aproc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aproc.h,v 1.20 2009/08/26 06:10:15 ratchov Exp $ */
+/* $OpenBSD: aproc.h,v 1.21 2009/08/26 08:28:21 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -169,11 +169,13 @@ struct aproc {
struct {
#define CTL_NSLOT 8
#define CTL_NAMEMAX 8
+ unsigned serial;
struct ctl_slot {
void (*cb)(void *, unsigned);
void *arg;
unsigned unit;
char name[CTL_NAMEMAX];
+ unsigned serial;
} slot[CTL_NSLOT];
} ctl;
} u;