]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Fixes for polyp plugin
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Feb 2006 15:38:52 +0000 (15:38 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Feb 2006 15:38:52 +0000 (15:38 +0000)
From: Pierre Ossman <ossman@cendio.se>

There shouldn't be any more API changes until polypaudio 0.8 that affect
this plugin. I am working on supporting capture volume and mute
switches, but that should be a strict addition (i.e. it can wait until
the next release if things get tight).

configure.in
polyp/pcm_polyp.c
polyp/polyp.c

index 7efad810c37851a4389405fdb2374eb8591ddc44..33d6205e6070921a4e15f98e936e7bc9e549c46d 100644 (file)
@@ -15,7 +15,7 @@ AC_CHECK_LIB(asound, snd_pcm_ioplug_create,,
 PKG_CHECK_MODULES(JACK, jack >= 0.98, [HAVE_JACK=yes], [HAVE_JACK=no])
 AM_CONDITIONAL(HAVE_JACK, test x$HAVE_JACK = xyes)
 
-PKG_CHECK_MODULES(polypaudio, [polyplib polyplib-mainloop], [HAVE_POLYP=yes], [HAVE_POLYP=no])
+PKG_CHECK_MODULES(polypaudio, [polyplib], [HAVE_POLYP=yes], [HAVE_POLYP=no])
 AM_CONDITIONAL(HAVE_POLYP, test x$HAVE_POLYP = xyes)
 
 SAVE_PLUGINS_VERSION
index e3ea5067d8e4138d9dfcc1fd189297c38e8a328c..84e3c346d3d6c851902a8e572c914aa8371f3c26 100644 (file)
@@ -210,7 +210,7 @@ static snd_pcm_sframes_t polyp_write(snd_pcm_ioplug_t *io,
 
        buf = (char *)areas->addr + (areas->first + areas->step * offset) / 8;
 
-    pa_stream_write(pcm->stream, buf, size * pcm->frame_size, NULL, 0);
+    pa_stream_write(pcm->stream, buf, size * pcm->frame_size, NULL, 0, 0);
 
     /* Make sure the buffer pointer is in sync */
     update_ptr(pcm);
@@ -245,7 +245,7 @@ static snd_pcm_sframes_t polyp_read(snd_pcm_ioplug_t *io,
 
        dst_buf = (char *)areas->addr + (areas->first + areas->step * offset) / 8;
     while (remain_size > 0) {
-        pa_stream_peek(pcm->stream, (void**)&src_buf, &frag_length);
+        pa_stream_peek(pcm->stream, (const void**)&src_buf, &frag_length);
         if (frag_length == 0)
             break;
 
@@ -352,7 +352,7 @@ static int polyp_prepare(snd_pcm_ioplug_t *io)
     assert(pcm->stream);
 
     if (io->stream == SND_PCM_STREAM_PLAYBACK)
-        pa_stream_connect_playback(pcm->stream, pcm->device, &pcm->buffer_attr, 0, NULL);
+        pa_stream_connect_playback(pcm->stream, pcm->device, &pcm->buffer_attr, 0, NULL, NULL);
     else
         pa_stream_connect_record(pcm->stream, pcm->device, &pcm->buffer_attr, 0);
 
index 139152f46fd037ee1e4c002ed42cec31daaa0116..0b25ae5461f6ffa3b9c2ceeb704aa7c5e8ef0632 100644 (file)
@@ -234,7 +234,7 @@ int polyp_connect(snd_polyp_t *p, const char *server)
 
     assert(p && p->context && p->mainloop && (p->state == POLYP_STATE_INIT));
 
-    err = pa_context_connect(p->context, server, 1, NULL);
+    err = pa_context_connect(p->context, server, 0, NULL);
     if (err < 0)
         goto error;