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:
Cedric GESTES 2006-10-05 14:59:38 +02:00 committed by Takashi Iwai
parent b956edf51f
commit b715a9637d
8 changed files with 395 additions and 153 deletions

View file

@ -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];
}