Subject: [ecasound] ecasound and ALSA (Re: 0.9.0beta1 is out)
From: Kai Vehmanen (kaiv@wakkanet.fi)
Date: Thu Feb 22 2001 - 13:52:52 EET
Ok, this bug is now fixed in the ALSA CVS-tree. As far as I know, the
latest ecasound (1.9dev3 in the CVS-tree) now works without problems with
ALSA. Here's a short syntax summary:
# ALSA pcm-device names, here device "sb" is used
# for playback (defined in ~/.asoundrc)
ecasound -i file.wav -o alsa,sb
# explicit ALSA pcm-hw access (card, device[, subdev])
ecasound -i file.wav -o alsahw,0,0
# explicit ALSA pcm-plugin access
ecasound -i file.wav -o alsaplugin,0,0
# ALSA OSS-emulation (snd-*-oss modules loaded)
ecasound -i file.wav -o /dev/dsp0
# OSS-emulation with libaoss (only native ALSA modules loaded)
export LD_PRELOAD=libaoss.so
ecasound -i file.wav -o /dev/dsp0
... and of course, same syntax for capture/recording. As for
playback reliability and latency, here're some useful ecasound options:
-r
- change to SCHED_FIFO scheduling (requires root priviledges)
-z:db
- use double-buffering for disk i/o (defaults to 100000 sample
frames per audio object)
-z:nointbuf
- limit buffering done by ALSA to 3 fragments
-z:xruns
- stop if under/overruns occur
-b:sample_frames
- set internal buffersize (=fragment size, period time, etc),
defaults to 1024 sample frames
On Thu, 22 Feb 2001, Abramo Bagnara wrote:
> Kai Vehmanen wrote:
> >
> >
> > 2) .. but fails with snd-pcm-oss modules
> >
> > - /dev/dsp opened in o_wronly mode
> > - SNDCTL_DSP_GETCAPS ioctl reports that trigger is supported
> > - SNDCTL_DSP_SETTRIGGER fails with errno 77
>
> Fixed now.
>
>
-- . http://www.eca.cx ... [ audio software for linux ] /\ . . http://www.eca.cx/sculpscape [ my armchair-tunes mp3/ra/wav ]-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request@wakkanet.fi>.
This archive was generated by hypermail 2b28 : Thu Feb 22 2001 - 15:16:57 EET