From d62992fdf1bc0e812f73783a0efefc13b7f3464c Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 16:45:58 +0200 Subject: [PATCH] wip --- src/beep.c | 5 +++++ src/beep.h | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) 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 */