[ecasound] pyecasound/eiam problem

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [ecasound] pyecasound/eiam problem
From: Bill Allen (ballen_AT_mail.serve.com)
Date: Tue Feb 05 2002 - 16:44:18 EET


I've written the following pyecasound script, but I'm confused by the
output. (The script isn't meant to do anything in this form, except
illustrate the problem that I'm having). You'll note in the script that I
simply setup a simple input/output chain and write out the chainsetup.
This is done twice such that the only difference between the chains is for
input I use "alsa,default" in the first chain, and "/dev/dsp" in the
second. Looking at the output (below the script), you'll see that in the
case of "/dev/dsp" the chain looks fine, but in the "alsa,default" case,
no input appears.

On a related note, I have observed in interactive mode:

ecasound ('h' for help)> ai-add 'alsa,default'
(eca-control) ERROR: ECA-CHAINSETUP: "Format of input 'alsa not
recognized."

I would assume that this is related, but I'm not sure why it is happening
and what the workaround is since I use alsa,default in all my ecasound
setups.

Bill

--------------- start script ------------------
#!/usr/local/bin/python

# -----------------------------------------------------------------------

import os
import sys
import time
from pyeca import *

e = ECA_CONTROL_INTERFACE()
e.command("cs-add test1")
e.command("c-add 1")
e.command("-i:alsa,default")
e.command("-o:test1.wav")
e.command("cs-save-as test1.ecs")

e.command("cs-add test2")
e.command("c-add 1")
e.command("-i:/dev/dsp")
e.command("-o:test2.wav")
e.command("cs-save-as test2.ecs")
sys.exit(0)
--------------- end script ------------------

The output is as follows:

--------------- start test1.ecs ------------------
-b:1024 -sr:44100 -n:test1 -X -z:intbuf -z:noxruns -z:nodb -z:nopsr

-a:1 -f:s16_le,2,44100 -o:test1.wav,

-a:1
--------------- end test1.ecs ------------------

--------------- start test2.ecs ------------------
-b:1024 -sr:44100 -n:test2 -X -z:intbuf -z:noxruns -z:nodb -z:nopsr

-a:1 -f:s16_le,2,44100 -i:/dev/dsp

-a:1 -f:s16_le,2,44100 -o:test2.wav,

-a:1
--------------- end test2.ecs ------------------

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request_AT_wakkanet.fi>.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Feb 05 2002 - 16:34:20 EET