ailiaAudioResample method
~japanese @brief 信号をリサンプルします @param dst 出力データのポインタ、float 型、要素数 dst_n @param src 入力データのポインタ、float 型、要素数 src_n @param dst_sample_rate 変換後のサンプリングレート @param dst_n データ出力先の確保要素数(dst_n >= max_resample_n) @param src_sample_rate 入力データのサンプリングレート @param src_n 入力データの要素数 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 最大出力数max_resample_nは ailiaAudioGetResampleLen() で取得できます。 dst_n < max_resample_n : 先頭からdst_nに入る部分のみ出力 dst_n >= max_resample_n : 出力要素数はmax_resample_n
~english @brief Resample the signal. @param dst pointer to the output data, of float format, and of length dst_n @param src pointer to the input data, of float format, and of length src_n @param dst_sample_rate sampling rate after the resampling @param dst_n length (in number of samples) reserved in the output buffer(dst_n >= max_resample_n) @param src_sample_rate sampling rate of the input signal @param src_n number of samples in the input signal @return In case of success, \ref AILIA_STATUS_SUCCESS , and else an error code is returned. @details The max number of samples in the output, max_resample_n, can be obtained from ailiaAudioGetResampleLen() . dst_n < max_resample_n : only the first dst_n samples are outputted dst_n >= max_resample_n : max_resample_n samples are outputted
Implementation
int ailiaAudioResample(
ffi.Pointer<ffi.Void> dst,
ffi.Pointer<ffi.Void> src,
int dst_sample_rate,
int dst_n,
int src_sample_rate,
int src_n,
) {
return _ailiaAudioResample(
dst,
src,
dst_sample_rate,
dst_n,
src_sample_rate,
src_n,
);
}