views:

12

answers:

0

While file to file effect chains are working fine, I'm having difficulty using the default audio device when compiling SoX from source. For example, if I run the example3 included in the source code (plays a sound file), I get the error

FAIL formats: no handler for given file type `alsa'
Assertion failed: out= sox_open_write("default", &in->signal, NULL, "alsa", NULL
, NULL), file example3.c, line 63

Same effect when I use the play and rec modes. Manually setting the filetype in formats.c to alternatives (waveaudio, oss, etc.) yields the same result.

I'm using Windows XP 32-bit, VS2010 and there are no issues playing/recording files using the pre-built sox executable.

Any ideas how to build SoX with support for recording/playback?

Thank you

PS: Ultimately, my goal is to play and record simultaneously.