From 354b2c7881d7d5e3fff5617e0077a5b16c632855 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 10 Nov 1998 13:26:25 +0000 Subject: [PATCH] Added loopback interface... --- include/pcm.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/pcm.h b/include/pcm.h index fc55f174..5f757c9f 100644 --- a/include/pcm.h +++ b/include/pcm.h @@ -47,3 +47,19 @@ ssize_t snd_pcm_read( void *handle, void *buffer, size_t size ); } #endif +#define SND_PCM_LB_OPEN_PLAYBACK 0 +#define SND_PCM_LB_OPEN_RECORD 1 + +#ifdef __cplusplus +extern "C" { +#endif + +int snd_pcm_loopback_open( void **handle, int card, int device, int mode ); +int snd_pcm_loopback_close( void *handle ); +int snd_pcm_loopback_stream_mode( void *handle, int mode ); +int snd_pcm_loopback_format( void *handle, snd_pcm_format_t *format ); +ssize_t snd_pcm_loopback_read( void *handle, void *buffer, size_t size ); + +#ifdef __cplusplus +} +#endif -- 2.47.1