Csound Csound-dev Csound-tekno Search About

[Cs-dev] Portaudio Version Differences

Date2005-03-12 04:32
From"Art Hunkins"
Subject[Cs-dev] Portaudio Version Differences
In comparing Portaudio in CsoundAV 0.0431 with the latest 0.0432 (the latter
updates Portaudio to the most recent version), I discovered two differences
that are proving irksome.

1) Output devices on my system, which in the earlier Portaudio are numbered
5-12 (MME), 13-16 (DirectSound) and 22-23 (ASIO), in the current version now
appear as 5-12 (MME), 17-20 (DirectSound) and 21-22 (ASIO). This, of course,
means you can't easily specify output device numbers as CsOptions in .csd's
and expect them to "stay put."

2) In the older Portaudio, you could specify output device 0 (-+P0) which
was actually an *input*, and get the first *output* device (in my system,
#5, the first MME driver). Why this was the case, I've no idea - but it was
very nice, as seemingly I could specify -+P0 and expect it to play on most
systems (giving me a nice "default" value). This behavior no longer applies
in the new Portaudio; I'd have actually to specify device 5 - which of
course scuttles the "default -+P0" idea, since you couldn't know how many
devices would be in anyone's system.

It was interesting to me that Istvan was able to disentangle output devices
from input devices so that -odac will work correctly (Csound5) on all
systems. I was just hoping that the roughly comparable -+P0 might accomplish
the same result in AV. However, Gab does not recommend -+P0 as a default
flag, and apparently didn't experience the behavior I did under the old
Portaudio either.

So, just thought I'd report on these differences. Frankly, we users could
use a lot fewer of these "upgrade stumbling blocks". In defense of Gab, all
he did was to substitute the latest Portaudio in CsoundAV, and users end up
needing to re-edit their code!

I didn't even mention that with the new Portaudio, the MME drivers require a
50ms output offset to get rid of zipper noise (no problem at all with the
older version). We call this progress?

Sorry - it's late; way past time to turn in.

Art Hunkins



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net