Subject: [linux-audio-dev] Re: [CUD] Csound & ALSA support: a call for assistance
From: Markus Gruber (gruber_AT_eikon.tum.de)
Date: Wed Sep 13 2000 - 15:06:15 EEST
pbd_AT_Op.Net said:
> there are a number of ways of fixing this.
> my favorite method is to fill the buffer with silence, then start it
> via SND_PCM_START_GO and an explicit start call.
I understand perfectly what you mean. Thanks. I fixed ALSArtaudio-block.c
according to your suggestion with the SND_PCM_START_GO and this. It works
perfectly now (at least for me). I call snd_pcm_go() after writing the first
fragment for playback, so I don't need the silence filled in the buffer, (and
before getting the first fragment for capture). That way I get exactly what I
wanted: transfer started immediately after writing the first fragment.
dlphilp_AT_bright.net said:
> Btw, it appears that we can have the ALSA driver or OSS-RTAUDIO but
> not both. I compiled using both options, and the test files defaulted
> to the OSS i/o even with incard/outcard (adc/dac).
you mean you did --with-OSS *and* --with-ALSA (or similar, you know what I
mean:-)). Yes, you can't select both. I've attached the new working
ALSArtaudio-block.c. Try it. It should consume less cpu time.
Markus
This archive was generated by hypermail 2b28 : Wed Sep 13 2000 - 17:23:28 EEST