Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/mathutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ typedef enum
} aubio_window_type;

fvec_t *
new_aubio_window (char_t * window_type, uint_t length)
new_aubio_window (const char_t * window_type, uint_t length)
{
fvec_t * win = new_fvec (length);
uint_t err;
Expand All @@ -57,7 +57,7 @@ new_aubio_window (char_t * window_type, uint_t length)
return win;
}

uint_t fvec_set_window (fvec_t *win, char_t *window_type) {
uint_t fvec_set_window (fvec_t *win, const char_t *window_type) {
smpl_t * w = win->data;
uint_t i, size = win->length;
aubio_window_type wintype;
Expand Down
4 changes: 2 additions & 2 deletions src/musicutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern "C" {
\param size length of the window to create (see fvec_set_window())

*/
fvec_t *new_aubio_window (char_t * window_type, uint_t size);
fvec_t *new_aubio_window (const char_t * window_type, uint_t size);

/** set elements of a vector to window coefficients

Expand All @@ -60,7 +60,7 @@ Uni- versity of Verona, Italy, 2000.
pdf</a>)

*/
uint_t fvec_set_window (fvec_t * window, char_t * window_type);
uint_t fvec_set_window (fvec_t * window, const char_t * window_type);

/** compute the principal argument

Expand Down