wip
This commit is contained in:
parent
0417c67854
commit
d62992fdf1
@ -199,6 +199,11 @@ int beep_test(void)
|
|||||||
/*
|
/*
|
||||||
* This extra small demo sends sinusoidal samples to your speakers.
|
* 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 beep_test(void)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
@ -50,9 +50,6 @@ int beep_test(void);
|
|||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
static char *device = "hw:0,0"; /* playback device */
|
|
||||||
snd_output_t *output = NULL;
|
|
||||||
|
|
||||||
#define FRAMES 16384L
|
#define FRAMES 16384L
|
||||||
|
|
||||||
int16_t buffer[FRAMES*2]; /* 16bit stereo sound samples */
|
int16_t buffer[FRAMES*2]; /* 16bit stereo sound samples */
|
||||||
|
Loading…
Reference in New Issue
Block a user