alsa-lib/test/loopback.c

19 lines
374 B
C
Raw Normal View History

1999-06-02 08:20:04 +00:00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../include/asoundlib.h"
int main(int argc, char *argv[])
{
int err;
1999-06-03 21:41:29 +00:00
snd_pcm_loopback_t *handle;
1999-06-02 08:20:04 +00:00
err = snd_pcm_loopback_open(&handle, 0, 0, SND_PCM_LB_OPEN_PLAYBACK);
if (err < 0) {
fprintf(stderr, "open error: %s\n", snd_strerror(err));
exit(0);
}
snd_pcm_loopback_close(handle);
return 0;
}