Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Default audio device issue

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
terabros1
Posts: 2
Joined: 2020-06-23 18:35

Default audio device issue

#1 Post by terabros1 »

Hello all, I am running into issues with jackd not selecting the correct audio device connected to my raspberry pi when I run the following command through a webserver using php:

Code: Select all

dbus-run-session /media/pi/root0/home/pi/jacktrip/src/jacktrip -C cmn16.stanford.edu -q8 2>&1
It works perfectly fine from the console but when I try issuing the same command using a web server via a php file, the Audio interface is not selected correctly and hence the default Audio0 is selected and my connected headphones and mic don’t work.

Error from web server:
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode
From console:
Acquire audio card Audio2
creating alsa driver ... hw:A96|hw:A96|1024|2|48000|0|0|nomon|swmeter|-|32bit
Any help resolving this issue will be much appreciated!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Default audio device issue

#2 Post by Head_on_a_Stick »

terabros1 wrote:raspberry pi
Are you running Raspbian?
deadbang

terabros1
Posts: 2
Joined: 2020-06-23 18:35

Re: Default audio device issue

#3 Post by terabros1 »

Head_on_a_Stick wrote:
terabros1 wrote:raspberry pi
Are you running Raspbian?
Yes!

Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Default audio device issue

#4 Post by Head_on_a_Stick »

deadbang

pendrachken
Posts: 1394
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Default audio device issue

#5 Post by pendrachken »

Default audio card for the user the web interface is running at is likely audiocard0. Specify the card you want with the command or find what user the web interface is running under and set up the default card to be the one you want.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P

Post Reply