This commit is contained in:
Gerolf Ziegenhain 2016-10-04 16:45:58 +02:00
parent 0417c67854
commit d62992fdf1
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -50,9 +50,6 @@ int beep_test(void);
#include <alsa/asoundlib.h>
#include <math.h>
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 */