ailiaAudioGetWindow method

int ailiaAudioGetWindow(
  1. Pointer<Void> dst,
  2. int window_n,
  3. int win_type
)

~japanese @brief 窓関数の係数を取得します。 @param dst 出力データのポインタ、float 型、要素数 window_n @param window_n 窓の長さ(サンプル数) @param win_type 窓関数の種類、AILIA_AUDIO_WIN_TYPE_* のいずれか @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 窓関数はhann窓とhamming窓のみ対応しています。

~english @brief Get the window function. @param dst pointer to the output data, of float format, and of length window_n @param window_n length of the window (in number of samples) @param win_type type of the window function: any of the AILIA_AUDIO_WIN_TYPE_* constants @return In case of success, \ref AILIA_STATUS_SUCCESS , and else an error code is returned. @details Only the Hann and the Hamming window functions are supported.

Implementation

int ailiaAudioGetWindow(
  ffi.Pointer<ffi.Void> dst,
  int window_n,
  int win_type,
) {
  return _ailiaAudioGetWindow(
    dst,
    window_n,
    win_type,
  );
}