|
From: Julien E. <jey...@gm...> - 2011-02-23 15:58:25
|
Shame on me... I moved out sox_init() and with coreaudio I get a segfault after the file has played once (corrected file attached). 2011/2/23 Pascal Giard <evi...@gm...>: > On Wed, Feb 23, 2011 at 11:30 AM, Julien Eychenne <jey...@gm...> wrote: >> As a follow up to my previous message, I modified example3.c to play 3 >> seconds inside a file twice (source code attached). I crashes on the >> same assertion I reported yesterday: >> >> Assertion failed: (fft_len == -1), function init_fft_cache, file >> effects_i_dsp.c, line 111. >> Abort trap >> >> Does anyone get the same behaviour? > > You are initializing SoX twice. > Fixed your example by moving the sox_init() outside the loop. > > Tested and working with "alsa" instead of "coreaudio". > > Cheers, > > -Pascal > -- > Homepage (http://organact.mine.nu) > Debian GNU/Linux (http://www.debian.org) > COMunité/LACIME: École de technologie supérieure (http://www.comunite.ca) > Integrated Microsystems Laboratory: McGill (http://www.iml.ece.mcgill.ca) > -- "And please don't cook me, kind sirs! I am a good cook myself, and cook better than I cook, if you see what I mean." The Hobbit, J.R.R. Tolkien |