diff options
author | Rob Sykes <robs@users.sourceforge.net> | 2015-08-18 23:26:56 +0300 |
---|---|---|
committer | Rob Sykes <robs@users.sourceforge.net> | 2015-08-18 23:26:56 +0300 |
commit | be33e5d050643c1034ff30c90361798968405ab7 (patch) | |
tree | d8ce99c96e8be7d2bdeceb0776be168b16e9ebaa | |
parent | 9eb59e984efd46c4a5e748a25ef33d5224a4e8d9 (diff) |
improve documentation of the two 'advanced-use' functions
-rw-r--r-- | src/soxr.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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); |