ailiaAudioGetSampleLen method

int ailiaAudioGetSampleLen(
  1. Pointer<Int> sample_n,
  2. int frame_n,
  3. int freq_n,
  4. int hop_n,
  5. int center
)

~japanese @brief ISTFTで生成されるサンプル数を取得します。 @param sample_n サンプル数出力先ポインタ @param frame_n STFTデータの時間フレーム長 @param fft_n FFT点数 @param hop_n 窓のシフト数 @param center AILIA_AUDIO_STFT_CENTER_* のいずれか @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details ISTFT実行前のバッファサイズの決定に使用します。 \ref AILIA_AUDIO_STFT_CENTER_NONE の場合 前後の切り捨てを行いません。 \ref AILIA_AUDIO_STFT_CENTER_NONE 以外の場合 前後の切り捨てを行います。

~english @brief Get the number of samples generated by the ISTFT. @param sample_n pointer to the destination where to write the output (the number of samples) @param frame_n length of the STFT data, expressed in number of frames @param fft_n size of the FFT at each frame (i.e. number of frequency bins at each frame) @param hop_n stride of each window shift (in number of samples). This is the quantum of time for the time axis of the STFT output. @param center any of the AILIA_AUDIO_STFT_CENTER_* constants @return In case of success, \ref AILIA_STATUS_SUCCESS , and else an error code is returned. @details Before executing the ISTFT, use this function to determine the space required for the output buffer. If \ref AILIA_AUDIO_STFT_CENTER_NONE is used, no truncation is performed at the beginning nor at the end. If \ref AILIA_AUDIO_STFT_CENTER_NONE is not used, a truncation is performed at the beginning and at the end.

Implementation

int ailiaAudioGetSampleLen(
  ffi.Pointer<ffi.Int> sample_n,
  int frame_n,
  int freq_n,
  int hop_n,
  int center,
) {
  return _ailiaAudioGetSampleLen(
    sample_n,
    frame_n,
    freq_n,
    hop_n,
    center,
  );
}