[Cs-dev] non-obvious configuration necissary, noise on dac output in csound5
Date | 2005-08-05 18:04 |
From | Bastiaan Zapf |
Subject | [Cs-dev] non-obvious configuration necissary, noise on dac output in csound5 |
Hi people, I have to do declare -x OPCODEDIR=/usr/local/lib/Csound/ or my csound5 won't find its dynamically loaded libs. Seems to be a minor mishap. The configured module path should be delivered as a define, which i couldnt find happening. And then, for some reason, the -odac (wondered a bit why the space isnt ok anymore) sound output is heavily distorted (I've ruled out endianness problems by using 8-bit). It sounds like overflows happening. Using the realtime alsa module works, though. Greetings, Basti ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-08-05 18:47 |
From | Istvan Varga |
Subject | Re: [Cs-dev] non-obvious configuration necissary, noise on dac output in csound5 |
Bastiaan Zapf wrote: > And then, for some reason, the -odac (wondered a bit why the space isnt > ok anymore) It should be OK as -o dac (with a space); I have just tested it with the current CVS sources. > sound output is heavily distorted (I've ruled out endianness > problems by using 8-bit). It sounds like overflows happening. Using the > realtime alsa module works, though. The default PortAudio output device uses the OSS /dev/dsp interface. Try using a different device number (-o dac1, -o dac2, etc.). If you still get buffer underruns, try increasing the buffer sizes. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-08-06 08:30 |
From | Bastiaan Zapf |
Subject | Re: [Cs-dev] non-obvious configuration necissary, noise on dac output in csound5 |
> >> And then, for some reason, the -odac (wondered a bit why the space isnt >> ok anymore) > > It should be OK as -o dac (with a space); I have just tested it with > the current CVS sources. > It obviously works now, but it behaved differently with or without space once while trying out, that made me wonder lots. > Try using a different device number (-o dac1, -o dac2, etc.). If you > still get buffer underruns, try increasing the buffer sizes. Not underruns, overflows! (127+1 = -128 etc.) The timing is ok in alsa, just when i use the default -odac (which is /dev/dsp?), the sound is distorted (not a *click* now and then, just noise with barely audible remains of what i wanted to play). -o dac1 works, though (didnt know that you can do that). I didnt have these phenomenons in csound4. Other than that, i'm very happy with csound5, startup is much quicker, and i'm very eager to try the new python stuff. Basti ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-08-06 11:26 |
From | Istvan Varga |
Subject | Re: [Cs-dev] non-obvious configuration necissary, noise on dac output in csound5 |
Bastiaan Zapf wrote: > Not underruns, overflows! (127+1 = -128 etc.) The timing is ok in alsa, > just when i use the default -odac (which is /dev/dsp?), the sound is > distorted (not a *click* now and then, just noise with barely audible > remains of what i wanted to play). -o dac1 works, though (didnt know > that you can do that). This may be caused by a bug in older versions of PortAudio v19. I also encountered it, but after updating PortAudio the problem was fixed. > I didnt have these phenomenons in csound4. Csound 4 does not use PortAudio; it only uses the OSS /dev/dsp directly. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |