mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-17 05:33:46 -04:00
us428control support for mixxx
This patch allow to change the mapping of the us428, the new mapping is used with mixxx. To use the new mapping: ./us428control -m mixxx Signed-off-by: Cedric GESTES <goctaf@gmail.com>
This commit is contained in:
parent
b956edf51f
commit
b715a9637d
8 changed files with 395 additions and 153 deletions
|
|
@ -1,3 +1,4 @@
|
|||
/* -*- mode:C++; indent-tabs-mode:t; tab-width:8; c-basic-offset: 8 -*- */
|
||||
/*
|
||||
* Controller for Tascam US-X2Y
|
||||
*
|
||||
|
|
@ -24,7 +25,7 @@
|
|||
|
||||
|
||||
class Cus428_ctls: public us428_ctls{
|
||||
public:
|
||||
public:
|
||||
Cus428_ctls() {
|
||||
memset(this, 0, sizeof(*this));
|
||||
}
|
||||
|
|
@ -33,7 +34,7 @@ class Cus428_ctls: public us428_ctls{
|
|||
bool Knob( int K) {
|
||||
return ((char*)this)[K / 8] & (1 << K % 8);
|
||||
}
|
||||
protected:
|
||||
protected:
|
||||
unsigned char ValAt(int i) {
|
||||
return ((unsigned char*)this)[i];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue