Fix the alsa writer
authorAndre Noll <maan@congo.fml.local>
Sun, 20 Aug 2006 17:01:11 +0000 (19:01 +0200)
committerAndre Noll <maan@congo.fml.local>
Sun, 20 Aug 2006 17:01:11 +0000 (19:01 +0200)
The previous patch broke compilation of alsa_write.c badly.
Fix is rather large but obvious.

alsa_write.c
configure.ac
error.h

index c104a5d..4510b97 100644 (file)
@@ -170,7 +170,7 @@ static int alsa_write_pre_select(struct sched *s, struct writer_node *wn)
 static int alsa_write_post_select(__a_unused struct sched *s,
                struct writer_node *wn)
 {
-       struct private_alsa__write_data *pad = wn->private_data;
+       struct private_alsa_write_data *pad = wn->private_data;
        struct writer_node_group *wng = wn->wng;
        size_t frames = (*wng->loaded - wn->written) / pad->bytes_per_frame;
        snd_pcm_sframes_t ret;
index a83d39e..58152db 100644 (file)
@@ -327,11 +327,11 @@ AC_CHECK_LIB([asound], [snd_pcm_open], [], [
        have_alsa="no"
 ])
 if test "$have_alsa" = "yes"; then
-       audiod_errlist_objs="$audiod_errlist_objs alsa_writer"
+       audiod_errlist_objs="$audiod_errlist_objs alsa_write"
        audiod_cmdline_objs="$audiod_cmdline_objs alsa_write.cmdline"
        audiod_ldflags="$audiod_ldflags -lasound"
 
-       write_errlist_objs="$write_errlist_objs alsa_writer"
+       write_errlist_objs="$write_errlist_objs alsa_write"
        write_cmdline_objs="$write_cmdline_objs alsa_write.cmdline"
        write_ldflags="$write_ldflags -lasound"
        write_writers="$write_writers alsa"
diff --git a/error.h b/error.h
index e1af56a..0f83398 100644 (file)
--- a/error.h
+++ b/error.h
@@ -71,7 +71,7 @@ enum para_subsystem {
        SS_FD,
        SS_WRITE,
        SS_WRITE_COMMON,
-       SS_ALSA_WRITER,
+       SS_ALSA_WRITE,
        SS_FILE_WRITE,
        SS_OSX_WRITE,
        NUM_SS
@@ -408,7 +408,7 @@ extern const char **para_errlist[];
        PARA_ERROR(DELAY_TIMEOUT, "initial delay timeout"), \
 
 
-#define ALSA_WRITER_ERRORS \
+#define ALSA_WRITE_ERRORS \
        PARA_ERROR(BROKEN_CONF, "Broken alsa configuration"), \
        PARA_ERROR(ACCESS_TYPE, "alsa access type not available"), \
        PARA_ERROR(SAMPLE_FORMAT, "sample format not available"), \
@@ -564,7 +564,7 @@ SS_ENUM(DCCP_SEND);
 SS_ENUM(FD);
 SS_ENUM(WRITE);
 SS_ENUM(WRITE_COMMON);
-SS_ENUM(ALSA_WRITER);
+SS_ENUM(ALSA_WRITE);
 SS_ENUM(FILE_WRITE);
 SS_ENUM(OSX_WRITE);
 SS_ENUM(RINGBUFFER);