Christian Weisgerber <[EMAIL PROTECTED]> wrote:

> New version:
> * Update to 1.6.1.
> * Integrate ratchov@'s sndio backend improvements.
> * Enable IPv6 support.

* Fix next/previous/back to beginning of track in terminal control
  mode.

> The output module API isn't documented, so this involves a bit
> of guesswork.

Turns out I guessed wrong for the flush primitive.  Provide a dummy,
since this function is expected to exist, but libsndio doesn't have
any flush/drain call.

--- files/sndio.c.orig  Mon Nov 10 17:20:28 2008
+++ files/sndio.c       Tue Nov 11 01:15:39 2008
@@ -99,9 +99,7 @@
 
 static void flush_sndio(audio_output_t *ao)
 {
-       struct sio_hdl *hdl = (struct sio_hdl *)ao->userptr;
-
-       sio_stop(hdl);
+       return;
 }
 
 static int close_sndio(audio_output_t *ao)
@@ -119,7 +117,7 @@
        
        /* Set callbacks */
        ao->open = open_sndio;
-       ao->flush = flush_sndio;
+       ao->flush = flush_sndio;        /* required */
        ao->write = write_sndio;
        ao->get_formats = get_formats_sndio;
        ao->close = close_sndio;
-- 
Christian "naddy" Weisgerber                          [EMAIL PROTECTED]

Reply via email to