On Sun, Jan 18, 2009 at 7:20 PM, Jacob Meuser <jake...@sdf.lonestar.org> wrote: > On Sun, Jan 18, 2009 at 04:53:41PM -0500, Nick Guenther wrote: > >> straight `jackd` was very stuttery (because of xruns), but after some >> experimenting I have settled on: >> /usr/local/bin/jackd -R -d sun -r 44100 -p 4096 -n 4 >> (44100 because audacity and hydrogen use that as a default sample >> rate, 4096 because 2048 was still stuttery sometimes) >> >> Here is my audio card: >> azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: irq 7 >> azalia0: codec[s]: Realtek/0x0888 >> audio0 at azalia0 > > -R is useless. OpenBSD doesn't have realtime support.
I was worried about that. >> It works pretty well, but it's still not ideal, though. In playing a >> song with vlc+vlc-jack I noticed that it would click and pop >> sometimes. I looked at the song in Audacity and indeed it does get >> very near to +1.0 in the part where I hear the pops. However I killed >> jackd and ran vlc again on the same song and the pops were gone. So >> jackd must be overscaling, or perhaps BSD's oss underscales by >> default. I've been googling but no one seems to have this specific >> problem. Does anyone have any pointers? > > again, update to -current. this was a rounding problem in jack. Hah! > (and jackd doesn't use OSS on OpenBSD) Right, it's 'sun'. I get confused because they both work by reading and writing to a device file. >> -Nick >> >> p.s. By the way, what is libsndio? Is it an audio mixer in base, >> finally? I found a bunch of scattered posts about it and even the >> sio_open(3) man page in cvsweb but nothing that explains specifically >> what the goal is. > > libsndio is a new audio API. among it's benefits is the ability > to use different "backends" transparently, currently either audio(4) > or aucat(1) in server mode. So it's like PortAudio? Out of curiousity, why not just write an aucat backend for portaudio? > aucat can be used as a sound server in -current. unfortunately the > manuals on the web don't get updated all to often, but you can > snag a -current version of the manual from cvs or whatever. > > in my experience, it works much better than any other sound server > for both general purpose and more "advanced" usages. the one > feature of other sound servers that I miss is far out weighed by > aucat's impeccable reliability compared to those other servers, which > is ultimately the most important criteria for me. Yes, well that's why we're all here aren't we? Pulse and Esound are so so so flakey, and jack is not general purpose, and ALSA creates 10 devices for one sound card. Even though BSD doesn't have as many features you can point to as linux, when it actually does go and implement something it's done *so well*. Well thanks a lot for being so informative. I really appreciate it. I won't keep myself up tonight wondering about all the possible corner options I might have missed. -Nick