Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

Ecasound DSP startup difficulties
Ecasound DSP startup difficulties
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 10th January 2018, 06:27 PM   #11
taita is offline taita  Netherlands
diyAudio Member
 
Join Date: Dec 2014
Quote:
Originally Posted by CharlieLaub View Post
If you use the option "-ddd" with ecasound it will produce the maximum amount of debug and error messages. It might help you figure out the problem.

It is very possible that your 2-channel soundcard includes a 5.1 channel surround mode as part of the ALSA interface, however, if you actually try to play audio using that it may only produce an error because of the mismatch in the channel count.
I received my 5.1 soundcard today and tested it with different scripts but nothing works. I am getting the bus error and resources seem to be locked. Even the simple ecasound sound.wav failed. I think I have broken the environment with my attempts to solve things.

So I plan to do it all over again and install a fresh iso. One important question comes to my mind. What do I have to do in advance of installing the libraries. Do I have to do this in root mode (sudo su) or can I just do this under the initial user?

The steps to install things on linux seem easy but just for confirmation I repeat them. In terminal enter:

Code:
sudo apt-get install alsa alsa-base alsa-utils alsa-tools libasound2-plugins
sudo apt-get install ecasound
sudo apt-get install ladspa-sdk
For the filters I use the instructions on Richard Taylors page Richard Taylor -- Thompson Rivers University

This should be sufficient to set up the environment and get sound out of my soundcard?
  Reply With Quote
Old 10th January 2018, 06:56 PM   #12
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: California
Ecasound DSP startup difficulties
Quote:
Originally Posted by taita View Post
I received my 5.1 soundcard today and tested it with different scripts but nothing works. I am getting the bus error and resources seem to be locked. Even the simple ecasound sound.wav failed. I think I have broken the environment with my attempts to solve things.

So I plan to do it all over again and install a fresh iso. One important question comes to my mind. What do I have to do in advance of installing the libraries. Do I have to do this in root mode (sudo su) or can I just do this under the initial user?

The steps to install things on linux seem easy but just for confirmation I repeat them. In terminal enter:

Code:
sudo apt-get install alsa alsa-base alsa-utils alsa-tools libasound2-plugins
sudo apt-get install ecasound
sudo apt-get install ladspa-sdk
For the filters I use the instructions on Richard Taylors page Richard Taylor -- Thompson Rivers University

This should be sufficient to set up the environment and get sound out of my soundcard?
OK, we can help you. Please post the output of the following commands:
Code:
aplay -l
That is a lower case "L" in the command, above. Make sure your new soundcard is connected before running the command.
Code:
ecasound --version
Code:
echo $LADSPA_PATH
Code:
listplugins
The output will help us to check that everything is installed and configured properly.

Also, please post the ecasound commands that you are trying to run, and the output. I am sure we can get it working for you. You are very likely doing something wrong.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 10th January 2018, 07:01 PM   #13
taita is offline taita  Netherlands
diyAudio Member
 
Join Date: Dec 2014
Quote:
Originally Posted by CharlieLaub View Post
OK, we can help you. Please post the output of the following commands:
Code:
aplay -l
That is a lower case "L" in the command, above. Make sure your new soundcard is connected before running the command.
Code:
ecasound --version
Code:
echo $LADSPA_PATH
Code:
listplugins
The output will help us to check that everything is installed and configured properly.

Also, please post the ecasound commands that you are trying to run, and the output. I am sure we can get it working for you. You are very likely doing something wrong.
Thanks for your quick respons. Do you want me to do the commands in the old version or do I have to install a new iso first? Are root right needed or can I do the commonds just with my active user?
  Reply With Quote
Old 10th January 2018, 07:18 PM   #14
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: California
Ecasound DSP startup difficulties
Run the commands as a regular user. Root level privilege should not be needed for any of this stuff and could possibly be the source of your problem. I will explain later.

Do this for whatever setup you want to investigate.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 10th January 2018, 07:34 PM   #15
taita is offline taita  Netherlands
diyAudio Member
 
Join Date: Dec 2014
Quote:
Originally Posted by CharlieLaub View Post
Run the commands as a regular user. Root level privilege should not be needed for any of this stuff and could possibly be the source of your problem. I will explain later.

Do this for whatever setup you want to investigate.
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [USB Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ecasound --version
ecasound v2.9.1
Copyright (C) 1997-2014 Kai Vehmanen and others.
Ecasound comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of ecasound under the terms of the GNU
General Public License. For more information about these matters, see
the file named COPYING.

echo $LADSPA_PATH

listplugins
Warning: You do not have a LADSPA_PATH environment variable set.
/usr/lib/ladspa/amp.so:
    Mono Amplifier (1048/amp_mono)
    Stereo Amplifier (1049/amp_stereo)
/usr/lib/ladspa/delay.so:
    Simple Delay Line (1043/delay_5s)
/usr/lib/ladspa/sine.so:
    Sine Oscillator (Freq:audio, Amp:audio) (1044/sine_faaa)
    Sine Oscillator (Freq:audio, Amp:control) (1045/sine_faac)
    Sine Oscillator (Freq:control, Amp:audio) (1046/sine_fcaa)
    Sine Oscillator (Freq:control, Amp:control) (1047/sine_fcac)
/usr/lib/ladspa/noise.so:
    White Noise Source (1050/noise_white)
/usr/lib/ladspa/filter.so:
    Simple Low Pass Filter (1041/lpf)
    Simple High Pass Filter (1042/hpf)
echo $LADSPA_PATH gives no result.
I know I can use export LADSPA_PATH=/usr/local/lib/ladspa:/usr/lib/ladspa to store the path. But for some or another reason I have to do this every time after a rebooth.

When I do export the path and I try again to play something I get

Code:
speaker-test -D surround51:Device -c 6 -t wav
speaker-test 1.1.0

Playback device is surround51:Device
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Playback open error: -16,Device or resource busy
Well I hope this gives the information for the right root cause.

Last edited by taita; 10th January 2018 at 07:41 PM.
  Reply With Quote
Old 10th January 2018, 07:46 PM   #16
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: California
Ecasound DSP startup difficulties
You either have to set the LADSPA_PATH evironmental variable each time after a reboot, or you need to put it into some file that is read/run at bootup. Try putting
export LADSPA_PATH=/usr/local/lib/ladspa:/usr/lib/ladspa
at the end of your .profile file in the user home directory.

It might be that some other process is already using the soundcard or you are referring to it incorrectly. Could you please run the command:
aplay -L
This will generate more output. It is a list of all the output modes of all the soundcards. You can post all of that, or just the section for your USB soundcard.

You can also try to unplug the soundcard, wait a few seconds, and then plug it back in. This would cause any process that is using it to be terminated.

Also, what is the OS that you are using?
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins

Last edited by CharlieLaub; 10th January 2018 at 07:53 PM.
  Reply With Quote
Old 10th January 2018, 08:02 PM   #17
taita is offline taita  Netherlands
diyAudio Member
 
Join Date: Dec 2014
Code:
aplay -L
default
    Playback/recording through the PulseAudio sound server
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=Device
    USB Sound Device, USB Audio
    Default Audio Device
front:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    Front speakers
surround21:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    Direct sample mixing device
dsnoop:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    Direct sample snooping device
hw:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
    USB Sound Device, USB Audio
    Hardware device with all software conversions
The OS is a recent version of Ubuntu mate on a RPI.

Some succes: I disconnected the soundcard and did
Code:
speaker-test -D surround51:Device -c 6 -t wav
The test played well and I could hear the test from the soundcard. But to stop the process I used ctrl Z, but that seems not to be the right method as I got errors again.

Last edited by taita; 10th January 2018 at 08:12 PM.
  Reply With Quote
Old 10th January 2018, 08:12 PM   #18
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: California
Ecasound DSP startup difficulties
What happens if you try this:
Code:
ecasound -B:rt -i:tone,sine,400 -o:alsa,surround51:CARD=Device,DEV=0
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 10th January 2018, 08:20 PM   #19
taita is offline taita  Netherlands
diyAudio Member
 
Join Date: Dec 2014
Quote:
Originally Posted by CharlieLaub View Post
What happens if you try this:
Code:
ecasound -B:rt -i:tone,sine,400 -o:alsa,surround51:CARD=Device,DEV=0
That works well, but how do I terminate the playing?

Code:
ecasound -B:rt -z:mixmode,sum -x -i:Flute.wav -f:16,2,44100 -o:alsa,plug:surround:Device
**************************************************************************
*        ecasound v2.9.1 (C) 1997-2014 Kai Vehmanen and others    
**************************************************************************
(eca-chainsetup-parser) Buffering mode 'rt' selected.
(eca-chainsetup-parser) Enabling 'sum' mixmode.
(eca-chainsetup-parser) Truncating outputs (overwrite-mode).
(eca-chainsetup) Chainsetup "untitled-chainsetup"
(eca-chainsetup) "rt" buffering mode selected.
(eca-chainsetup) WARNING: Couldn't lock all memory!
(eca-chainsetup) Opened input "Flute.wav", mode "read". Format: s16_le,
... channels 2, srate 44100, interleaved (locked params).
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround:Device
ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-ALSA:
... Unable to open ALSA-device for playback; error: No such file or
... directory"

Last edited by taita; 10th January 2018 at 08:24 PM.
  Reply With Quote
Old 10th January 2018, 08:21 PM   #20
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
"Device busy" is simple - your soundcard is taken by another process. In 99.9% it is pulseaudio. IMO that is also the cause for the "bus error" of ecasound.

Run

Code:
sudo lsof /dev/snd/*
and you will see your soundcard device is open by pulseaudio process.

One-time solution - run several times the command

Code:
killall pulseaudio
untill the lsof command lists no pulseaudio processes holding your soundcards.

Permanent solution - disable the soundcard in pulseaudio:

pavucontrol -> tab Settings -> choose Off for the cards you do not want pulseaudio to touch.

[xubuntu] How to make Pulseaudio use only a specific device - Page 2
  Reply With Quote

Reply


Ecasound DSP startup difficultiesHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ecasound crossover issue with Line in Tonio79 PC Based 16 25th January 2017 02:35 AM
help with delayed (15s) audio in ecasound crossover setup Gordon C PC Based 8 25th November 2016 10:38 AM
MPD to ecasound - plays flac but not MP3 JMF11 PC Based 7 13th June 2016 09:10 PM
ecasound in MPD - problem of Device or resource busy JMF11 PC Based 7 12th June 2016 07:02 AM
PCM2902 difficulties jmar Digital Source 7 13th January 2006 10:07 PM


New To Site? Need Help?

All times are GMT. The time now is 03:20 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki