Cosmetics: Rename samplerate to sample_rate.
authorAndre Noll <maan@systemlinux.org>
Wed, 30 Jun 2010 12:09:56 +0000 (14:09 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 13 Jul 2010 12:40:41 +0000 (14:40 +0200)
A subsequent patch will introduce sample_format which looks much nicer
than sampleformat. So let's use the underscored variant throughout.

alsa_write.c
write.c
write_common.h

index dfa7a2e..7f045aa 100644 (file)
@@ -46,7 +46,6 @@ struct private_alsa_write_data {
         * of the writer node group.
         */
        unsigned sample_rate;
-
        snd_pcm_format_t sample_format;
        /**
         * The number of channels, given by command line option or the
diff --git a/write.c b/write.c
index 8411003..424286b 100644 (file)
--- a/write.c
+++ b/write.c
@@ -37,8 +37,9 @@ struct check_wav_task {
        int state;
        /** Number of channels. */
        unsigned channels;
-       unsigned sample_rate;
        unsigned sample_format;
+       /** Sample rate specified in wav header given by \a buf. */
+       unsigned sample_rate;
        /** The task structure used by the scheduler. */
        struct task task;
        struct btr_node *btrn;
index d26d42c..331fa46 100644 (file)
@@ -15,4 +15,3 @@ int setup_writer_node(const char *arg, struct btr_node *parent,
 void get_btr_sample_rate(struct btr_node *btrn, int32_t *result);
 void get_btr_channels(struct btr_node *btrn, int32_t *result);
 void get_btr_sample_format(struct btr_node *btrn, int32_t *result);
-