| I'm afraid this is a little bit complex.
PortAudio does see the -b and -B options, and they do matter.
Your vague suspicion is, I think, the case., Plain -dac defaults to
whatever Windows thinks is the audio output. This may or may not be
what you want. -dacN will choose the driver listed as N by Csound when
it runs.
Hope this helps,
Mike
On 7/31/09, Jim Aikin wrote:
>
>
> Art Hunkins wrote:
>>
>> Including MIDI and audio drivers there are only about 10 Csound files I
>> actually use; I put them in a single folder, then add my .csd(s) and
>> whatever front-end I may be using, click through to that folder and run.
>> Prior to then, I get rid of my .csoundrc and environment variables, and
>> put
>> all my necessary commandline options in .
>>
>
> With respect to environment variables, I seem to have settings for CSOUNDRC,
> OPCODEDIR, OPCODEDIR64 (though the current csound version I'm using is NOT
> the 64-bit version), and PYTHONPATH. I don't think any of the other paths in
> the list are Csound-related.
>
> I tried getting rid of .csoundrc entirely. What I think is interesting is
> that now rendering a pre-written score file to the dac works fine from the
> DOS command prompt -- it sounds perfect -- but produces gargling from the
> GUI. And that's _without_ a .csoundrc file anywhere in the system. The
> pre-written score file doesn't have ANY of those options in its CSoptions
> area! Yet it plays from the command line.
>
> The simple MIDI input test file I posted earlier, however, produces gargling
> when run from the command line. So I tried replacing its complex options
> (all the stuff in .csoundrc, a file which now no longer exists). And it
> works! I hear my sine wave. The latency is horrible, but this is progress.
>
> When I add values for -b and -B back into CSoptions, in order to try to cut
> down on the latency, the gargling reappears. I could sit here all afternoon
> testing various combinations of values for -b, -B, and ksmps, but I'll bet
> you $5 that won't make any difference. I'm betting that the problem is that
> PortAudio doesn't want to see ANY command-line argument for -b or -B.
>
> I'm wondering a bit about the ASIO vs. MME audio. In the Windows Control
> Panel one doesn't have an option to choose an ASIO driver; presumably the
> system is using a high-latency MME driver. So if Csound is expecting to see
> an ASIO driver, but it's _also_ automatically directing the audio to the
> Windows system audio output ... it's vaguely possible that this conflict
> could cause the problem I'm seeing. When I don't specify -b or -B, PortAudio
> just says, "Okay, we'll use the standard MME audio pipeline, then." And
> everything is copacetic.
>
> But I'm making a blind guess here. I'm just saying ... -b and -B flat-out
> don't work on my system, and I don't know why.
>
> --JA
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Realtime-Audio-Output-Gargling-tp24760065p24763048.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
|