add audio setup options

This commit is contained in:
Tomasz Moń
2009-02-25 19:10:52 +01:00
parent 79912510b4
commit 2c6afe730d
4 changed files with 17 additions and 1 deletions

1
TODO
View File

@@ -1,7 +1,6 @@
-figure out all magic commands -figure out all magic commands
-make complete gui -make complete gui
-amp/cabinet models -amp/cabinet models
-audio setup options
-tone library -tone library
-effects library -effects library
-effects level -effects level

View File

@@ -455,6 +455,10 @@ enum {
#define EXP_MIN 8195 #define EXP_MIN 8195
#define EXP_MAX 8196 #define EXP_MAX 8196
#define USB_POSITION 0
#define USB_AUDIO_PLAYBACK_MIX 12297
#define USB_AUDIO_LEVEL 12307
void set_option(guint id, guint position, guint value); void set_option(guint id, guint position, guint value);
void set_wah_min(int level); void set_wah_min(int level);
void set_wah_max(int level); void set_wah_max(int level);

12
tests.c
View File

@@ -861,6 +861,17 @@ void test_exp()
set_option(EXP_MAX, EXP_POSITION, x); set_option(EXP_MAX, EXP_POSITION, x);
} }
void test_usb()
{
int x;
for (x=0; x<=100; x++)
set_option(USB_AUDIO_PLAYBACK_MIX, USB_POSITION, x);
for (x=0; x<=36; x++)
set_option(USB_AUDIO_LEVEL, USB_POSITION, x);
}
void test_all() void test_all()
{ {
test_wah(); test_wah();
@@ -874,4 +885,5 @@ void test_all()
test_delay(); test_delay();
test_reverb(); test_reverb();
test_exp(); test_exp();
test_usb();
} }

View File

@@ -27,4 +27,5 @@ void test_chorusfx();
void test_delay(); void test_delay();
void test_reverb(); void test_reverb();
void test_exp(); void test_exp();
void test_usb();
void test_all(); void test_all();