Ignore:
Timestamp:
Mar 30, 2005, 4:53:46 AM (15 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
3050cb8
Parents:
a4b089c
Message:

fix jack playing with short buffer (move pos)

(aubionotes.c and aubioonset.c)
added samplerate query to aubioonset.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    ra4b089c r1f40359  
    6060int isonset = 0;
    6161aubio_pickpeak_t * parms;
     62unsigned int pos = 0; /*frames%dspblocksize*/
    6263
    6364int aubio_process(float **input, float **output, int nframes) {
    6465  unsigned int i;       /*channels*/
    6566  unsigned int j;       /*frames*/
    66   unsigned int pos = 0; /*frames%dspblocksize*/
    6767  for (j=0;j<nframes;j++) {
    6868    if(usejack) {
     
    120120    if (verbose) file_info(file);
    121121    channels = aubio_file_channels(file);
     122    samplerate = aubio_file_samplerate(file);
    122123    if (output_filename != NULL)
    123124      fileout = new_file_wo(file, output_filename);
Note: See TracChangeset for help on using the changeset viewer.