]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added loopback interface...
authorJaroslav Kysela <perex@perex.cz>
Tue, 10 Nov 1998 13:26:25 +0000 (13:26 +0000)
committerJaroslav Kysela <perex@perex.cz>
Tue, 10 Nov 1998 13:26:25 +0000 (13:26 +0000)
include/pcm.h

index fc55f174d5177f1c8bbf6918966021ddbd840aae..5f757c9fcd7beed6587c3eae7c923ae8368be673 100644 (file)
@@ -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