diff --git a/src/beep.c b/src/beep.c index 923cc05..340bf37 100644 --- a/src/beep.c +++ b/src/beep.c @@ -199,6 +199,11 @@ int beep_test(void) /* * This extra small demo sends sinusoidal samples to your speakers. */ + +static char *device = "hw:0,0"; /* playback device */ +snd_output_t *output = NULL; + + int beep_test(void) { int err; diff --git a/src/beep.h b/src/beep.h index 0484d81..50f1cf1 100644 --- a/src/beep.h +++ b/src/beep.h @@ -50,9 +50,6 @@ int beep_test(void); #include #include -static char *device = "hw:0,0"; /* playback device */ -snd_output_t *output = NULL; - #define FRAMES 16384L int16_t buffer[FRAMES*2]; /* 16bit stereo sound samples */