|
From: Julien E. <jey...@gm...> - 2011-02-21 20:25:09
|
I am trying to integrate libsox into a cross-platform Qt application (a concordancer for sound-aligned labelling of speech). I have integrated the source code into my application and as a first step, I'm simply using libsox for sound playback. The playback function is based on the code in example3.c. It works fine on Windows and Linux, but I'm experiencing a couple of problems on Mac OS X (10.6, macbook 4,1): - the most outstanding one is that I'm able to flow effects only once. If I try to play a second sound, it either doesn't play anything or segfaults somewhere in sox_flow_effects(). - the second one is that mono files seem to be played twice as fast (and with a pitch twice as high) as they ought to (tested with FLAC and WAV files). I worked around this by converting the input to stereo before playback, but I thought I would mention it since it only happens on OS X. I would appreciate any insight into these problems (especially the first one). These problems still remain in 14.3.2-rc2. Thanks, Julien. -- "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 |