Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soxr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Sykes <robs@users.sourceforge.net>2015-08-18 23:26:56 +0300
committerRob Sykes <robs@users.sourceforge.net>2015-08-18 23:26:56 +0300
commitbe33e5d050643c1034ff30c90361798968405ab7 (patch)
treed8ce99c96e8be7d2bdeceb0776be168b16e9ebaa
parent9eb59e984efd46c4a5e748a25ef33d5224a4e8d9 (diff)
improve documentation of the two 'advanced-use' functions
-rw-r--r--src/soxr.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/soxr.h b/src/soxr.h
index 9bbd811..ac11262 100644
--- a/src/soxr.h
+++ b/src/soxr.h
@@ -313,7 +313,19 @@ SOXR soxr_io_spec_t soxr_io_spec(
-/* --------------------------- Internal use only ---------------------------- */
+/* --------------------------- Advanced use only ---------------------------- */
+
+/* For new designs, the following functions/usage will probably not be needed.
+ * They might be useful when adding soxr into an existing design where values
+ * for the resampling-rate and/or number-of-channels parameters to soxr_create
+ * are not available when that function will be called. In such cases, the
+ * relevant soxr_create parameter(s) can be given as 0, then one or both of the
+ * following (as appropriate) later invoked (but prior to calling soxr_process
+ * or soxr_output):
+ *
+ * soxr_set_error(soxr, soxr_set_io_ratio(soxr, io_ratio, 0));
+ * soxr_set_error(soxr, soxr_set_num_channels(soxr, num_channels));
+ */
SOXR soxr_error_t soxr_set_error(soxr_t, soxr_error_t);
SOXR soxr_error_t soxr_set_num_channels(soxr_t, unsigned);