Help with rt-plugins-x.x.x.tar.gz

Status
Not open for further replies.
Hope this looks better

Code:
pi@raspberrypi:~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
dmix:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample mixing device
dmix:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample snooping device
hw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Hardware device with all software conversions
sysdefault:CARD=CODEC
    USB Audio CODEC, USB Audio
    Default Audio Device
front:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    Front speakers
surround21:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    Direct sample mixing device
dsnoop:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    Direct sample snooping device
hw:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    Direct hardware device without any conversions
plughw:CARD=CODEC,DEV=0
    USB Audio CODEC, USB Audio
    Hardware device with all software conversions
 
You could also try:
Code:
alsa,hw:CARD=CODEC,DEV=0
I have never been 100% sure about the format for this! I usually just specify the ALSA device by its card number and device number, but this can change if you add or remove USB devices. I have never seen the numbering change after a reboot as some claim. Just an aside there for your info.
 
Code:
-eadb:3 -el:RTlr4lowpass,80 -el:RTparaeq,-6,30,4 -el:RTparaeq...(etc)
Do I create a text file called sub.ecp and put the filter line in it? Do I put this in with the RT folder I unzipped?

Thanks.

Create a text file called sub.ecp in the directory from which you will be calling ecasound.

For now, let's keep it as simple as possible. So in the text file just put
Code:
-eadb:3
That sets the level and it's part of ecasound. That way we can leave out anything related to R.Taylor's LADSPA plugins in case there are any problems with how you set those up, but the sub.ecp file will still do something.
 
Not where you INSTALLED ecasound, in whatever directory you are in when you RUN ecasound (referred to by me, above, as "calling" the program). You can run ecasound from any directory in your entire filesystem without having to reference where ecasound's executable actually resides. When you run the ecasound script file we have been building, the script calls ecasound and ecasound will look in that same directory (where the script file resides) for the sub.ecp file.
 
Last edited:
Code:
ecasound -z:mixmode,sum -x \
         -a:pre -i:mysong.mp3 -pf:pre.ecp -o:loop,1 \
         -a:woofer -i:loop,1 \
         -a:woofer -pf:woofer.ecp -chorder:1,2,0,0 \
         -a:woofer -f:16,2,44100 -o:alsa,sysdefault:CARD=PCH
Okay, I don't even know how to run it! Basically I run the above code in Terminal and mysong.mp3 started to play!
 
Right, so you know that when you run what you posted in the terminal window you are calling ecasound and running it. Don't worry about what is happening behind the scenes - that's going off on a tangent. Let's get back to what we were doing.

You are calling ecasound from some directory. If you are not sure what directory you are in you can print that out in the terminal window using the OS command "pwd" (print working directory). This is the current directory from which you are calling ecasound. The sub.ecp file should be located there. You can check by using the OS command "ls" (list), which lists all the files in the directory. When you list the files, is sub.ecp one of the files listed?

Let's return to the ecasound commands we are working on for your subwoofer. Did you try the changes I suggested in post #62 and #63?
 
Last edited:
I run from /home/pi
ls shows sub.ecp but not ecasound
#62 I've done
#63 bash: alsa,hw:CARDD=CODEC,DEV=0: command not found

For #63 you were supposed to change the ecaound script file, not type it into the terminal... specifically change this part of the ecasound script on line 2:
Code:
-i:alsa,CODEC
to
Code:
-i:alsa,hw:CARD=CODEC,DEV=0
and on line 4 change
Code:
-o:alsa,CODEC
to
Code:
-o:alsa,hw:CARD=CODEC,DEV=0

The purpose of trying these things, and then running ecasound, was to try to get rid of the following error that is preventing ecasound from functioning:
Code:
 ALSA lib pcm.c:2239snd_pcm_open_noupdate) Unknown PCM CODEC

I want you to try each of these (edits I described in posts #63 and #64) and then tell me whether that fixes the error, which you will have to figure out by either discovering that it is working (by playing music through it), or if it doesn't work looking at the debug output that ecasound is producing.
 
Last edited:
Wow, script file? I just put the code into Terminal! Okay, back to basics, somewhere on the sd card is a folder containing ecasound, right? It must contain sub folders? I did a search in File manager, there's nothing called ecasound?
I right clicked on the desktop and created a New Text Document, put your code in it and amended your errors and copy and pasted that into Terminal.
 
Last edited:
Wow, script file? I just put the code into Terminal! Okay, back to basics, somewhere on the sd card is a folder containing ecasound, right? It must contain sub folders? I did a search in File manager, there's nothing called ecasound?
What are you doing? Please STOP looking for ecasound. You are wasting our time here.
I right clicked on the desktop and created a New Text Document, put your code in it and amended your errors and copy and pasted that into Terminal.
OK, that will work for now. There is an easier way but I will tell you later once we have this actually working.

So, what happened when you tried the edits I suggested? Can we get back to working on the ecasound commands please? Post the output or tell me what happens.
 
Again

Code:
ecasound -ddd -B:rtlowlatency -b:512 -z:mixmode,sum \
   -a:get_input -f:16,2,44100 -i:alsa,hw:CARD=CODEC -chmix:1 -f:16,1,44100 -o:loop,mono_signal \
   -a:do_filters -i:loop,mono_signal -pf:sub.ecp -o:loop,filtered \
   -a:send_to_DACs -i:loop,filtered -f:16,2,44100 -chorder:0,0 -o:alsa,hw:CARD=CODEC

gave

Code:
ecasound: ERROR: [ECA-SESSION] : "Audio object "mono_signal" does not match any of the known audio device types or file formats. You can check the list of supported audio object types by issuing the command 'aio-register' in ecasound's interactive mode."
 
Hmmm, OK it could be that you cannot use an underscore in the loop name (guessing). Please try changing "mono_signal" to "monosignal". This must be done both at the end of line 2 and on line 3 so that the names match. If you still get an error you can just replace the word with an integer (try "1").

I'm leaving for a lunch with some friends in 20 min. Let's try a couple more things before then.
 
Status
Not open for further replies.