--- /dev/null
+<qu>
+option "channels" c
+#~~~~~~~~~~~~~~~~~~
+"specify number of channels"
+int typestr = "num"
+default = "2"
+optional
+details = "
+ It is only necessary to specify this option for raw audio. If
+ it is not given, the channel count is queried from the parent
+ buffer tree nodes (e.g. the decoder) or the wav header. Only
+ if this fails, the default value applies.
+"
+</qu>
$(ggo_dir)/fsck.ggo: $(m4_ggo_dir)/loglevel.m4
$(ggo_dir)/gui.ggo: $(m4_ggo_dir)/loglevel.m4 $(m4_ggo_dir)/config_file.m4
$(ggo_dir)/recv.ggo: $(m4_ggo_dir)/loglevel.m4
-$(ggo_dir)/write.ggo: $(m4_ggo_dir)/loglevel.m4
+$(ggo_dir)/write.ggo: $(m4_ggo_dir)/loglevel.m4 \
+ $(m4_ggo_dir)/channels.m4 \
+ $(m4_ggo_dir)/sample_rate.m4 \
+ $(m4_ggo_dir)/sample_format.m4
$(ggo_dir)/client.ggo: \
$(m4_ggo_dir)/loglevel.m4 \
$(m4_ggo_dir)/config_file.m4 \
--- /dev/null
+<qu>
+option "sample-format" f
+#~~~~~~~~~~~~~~~~~~~~~~~
+"specify sample format"
+# This must match the enum sample_format of para.h
+values = "S8", "U8", "S16_LE", "S16_BE", "U16_LE", "U16_BE" enum
+default = "S16_LE"
+optional
+details = "
+ It is only neccessary to specify this for raw audio. See the
+ discussion of the --channels option.
+"
+</qu>
--- /dev/null
+<qu>
+option "sample-rate" s
+#~~~~~~~~~~~~~~~~~~~~~
+"do not guess the input sample rate"
+int typestr = "num"
+default = "44100"
+optional
+details = "
+ It is only neccessary to specify this for raw audio. See the
+ discussion of the --channels option.
+"
+</qu>
more than once.
"
-text "
- The following options are only necessary for raw audio. When
- playing wav files this information is obtained from the
- wave header.
-"
-
-option "channels" c
-#~~~~~~~~~~~~~~~~~~
-"specify number of channels"
-int typestr = "num"
-default = "2"
-optional
-
-option "sample-rate" s
-#~~~~~~~~~~~~~~~~~~~~~
-"force given sample rate"
-int typestr = "num"
-default = "44100"
-optional
-
-option "sample-format" f
-#~~~~~~~~~~~~~~~~~~~~~~~
-"specify sample format"
-# This must match the enum sample_format of para.h
-values = "S8", "U8", "S16_LE", "S16_BE", "U16_LE", "U16_BE" enum
-default = "S16_LE"
-optional
-
+include(channels.m4)
+include(sample_rate.m4)
+include(sample_format.m4)