mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Added loopback, some fixes...
This commit is contained in:
parent
19811bb9b4
commit
3d5115b325
3 changed files with 23 additions and 2 deletions
18
test/loopback.c
Normal file
18
test/loopback.c
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../include/asoundlib.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int err;
|
||||
void *handle;
|
||||
|
||||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue