Changeset ad9f999


Ignore:
Timestamp:
May 10, 2016, 11:20:52 PM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
8cf51c4
Parents:
168a154
Message:

python/ext/py-phasevoc.c: improve error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-phasevoc.c

    r168a154 rad9f999  
    6767  self->o = new_aubio_pvoc ( self->win_s, self->hop_s);
    6868  if (self->o == NULL) {
    69     char_t errstr[30];
    70     sprintf(errstr, "error creating pvoc with %d, %d", self->win_s, self->hop_s);
    71     PyErr_SetString (PyExc_RuntimeError, errstr);
     69    PyErr_Format(PyExc_RuntimeError,
     70        "failed creating pvoc with win_s=%d, hop_s=%d",
     71        self->win_s, self->hop_s);
    7272    return -1;
    7373  }
Note: See TracChangeset for help on using the changeset viewer.