ref: 82f0effdabd88079cff6e6a6b3f1aded444c4476
parent: e1d9cc30aa9498e91455bdfad4c77f2a7305e3a4
author: Paul Brossier <piem@piem.org>
date: Wed Sep 6 10:01:22 EDT 2017
src/spectral/phasevoc.h: add _set_window
--- a/src/spectral/phasevoc.c
+++ b/src/spectral/phasevoc.c
@@ -143,6 +143,10 @@
return NULL;
}
+uint_t aubio_pvoc_set_window(aubio_pvoc_t *pv, const char_t *window) {
+ return fvec_set_window(pv->w, (char_t*)window);
+}
+
void del_aubio_pvoc(aubio_pvoc_t *pv) {
del_fvec(pv->data);
del_fvec(pv->synth);
--- a/src/spectral/phasevoc.h
+++ b/src/spectral/phasevoc.h
@@ -95,6 +95,16 @@
*/
uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv);
+/** set window type
+
+ \param pv phase vocoder to set the window type
+ \param window_type a string representing a window
+
+ \return 0 if successful, non-zero otherwise
+
+ */
+uint_t aubio_pvoc_set_window(aubio_pvoc_t *pv, const char_t *window_type);
+
#ifdef __cplusplus
}
#endif