Csound Csound-dev Csound-tekno Search About

csound5 with alsa

Date2005-12-29 21:14
FromAtte André Jensen
Subjectcsound5 with alsa
Hi

I've been running with jack for ages, but I don't need it for the 
moment, so I'd try running without to compare performance. This is what 
I have in my .csoundrc:

-+rtaudio=alsa
-o dac
--sched
--expression-opt
-b 128
-B 256
-d
-m0
-M 0

But csound5 fails with something like:

PortMIDI: selected input device 0: 'Midi Through Port-0' (ALSA)
orch now loaded
audio buffered in 128 sample-frame blocks
ALSA lib timer_hw.c:269:(snd_timer_hw_open) extended read is not 
supported (SNDRV_TIMER_IOCTL_TREAD)
ALSA: -B 256 not allowed on this device; use 15052 instead
  *** Failed while trying to set soundcard DMA buffer size
Failed to initialise real time audio output

Any idea what I need to fix this? Also, I need to be able to address two 
different soundcards in different situations. How to I point csound5 to 
different soundcards? And finally; what is the recommended, best 
performing audio layer, jack or alsa?

Thanks in advance for any response...

-- 
peace, love & harmony
Atte

http://www.atte.dk

Date2005-12-29 21:20
FromIain Duncan
SubjectRe: csound5 with alsa
> Any idea what I need to fix this? Also, I need to be able to address two 
> different soundcards in different situations. How to I point csound5 to 
> different soundcards? And finally; what is the recommended, best 
> performing audio layer, jack or alsa?
> 
> Thanks in advance for any response...

If you don't need to be using jack, I think alsa with the --sched 
option. Jack just output through alsa anyway, so you are cutting out a 
layer by skipping it, allowing the scheduler to put csound first without 
worrying about jack.

Iain

Date2005-12-29 21:21
FromIstvan Varga
SubjectRe: csound5 with alsa
AttachmentsNone  

Date2005-12-29 23:58
FromAtte André Jensen
SubjectRe: csound5 with alsa
Istvan Varga wrote:

> ALSA should generally perform better as it outputs directly to the
> sound card without an additional layer of buffering; the main advantage
> of Jack is that it allows connecting to other applications.

I'll give alsa a go then tomorrow. Thanks for the clear pointers!

-- 
peace, love & harmony
Atte

http://www.atte.dk