LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-01-2018, 01:04 PM   #1
lolzmau5
LQ Newbie
 
Registered: Aug 2018
Posts: 3

Rep: Reputation: Disabled
mixing multiple input & output steam with alsa


Hi
I'm using openSUSE Leap 42.1 and have problems with the setup of the asound.conf config file.
I want to use the in and output of my headset usb device in multiple programs simultaneously.

My asound.conf file looks like this.
Quote:
pcm.newmixer {
type plug
slave.pcm "asym0"
}

pcm.asym0 {
type asym
playback.pcm "dmix0"
capture.pcm "dsnoop0"
}

pcm.dmix0 {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm {
type hw
card 0
device 0
}
period_time 0
period_size 1024
buffer_size 65536
format "S16_LE"
periods 128
rate 44100
}
}

pcm.dsnoop0 {
type dsnoop
ipc_key 1025
ipc_perm 0666
slave {
pcm {
type hw
card 0
device 0
}
channels 1
format "S16_LE"
period_size 384
buffer_size 1920
rate 16000
}
}
first i call "arecord -v -D newmixer output.wav",
then i try to run one of my other apps and get the output
"ALSA: capture open error: device or resource is busy"
 
Old 08-02-2018, 06:31 AM   #2
lolzmau5
LQ Newbie
 
Registered: Aug 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
The strange thing is, this works for multiple processes that are using only one of the playback or capture device, but not both at the same time, when the capture device is already used by another process.

edit: Now im totally confused. When i login via remote (ssh -X) and start the processes, everything works as expected.

Last edited by lolzmau5; 08-02-2018 at 10:10 AM.
 
Old 08-03-2018, 12:04 PM   #3
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
Quote:
I'm using openSUSE Leap 42.1
Out of support...
Also Leap 42.2.

Install Leap 42.3 or better the actual one Leap 15.0.
 
Old 08-07-2018, 07:39 AM   #4
lolzmau5
LQ Newbie
 
Registered: Aug 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Sauerland View Post
Out of support...
Also Leap 42.2.

Install Leap 42.3 or better the actual one Leap 15.0.
Currently we cannot switch to a newer version.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio input and output not mixing, with hedset. TheLinuxCake Linux - Software 2 03-13-2016 10:47 AM
LXer: New Steam Beta Client Updates ALSA, Adds Multiple Steam Controller Improvements LXer Syndicated Linux News 0 02-24-2016 11:18 PM
ALSA/Pulse - remap input to output big_bum Linux - Laptop and Netbook 0 07-19-2012 07:13 AM
[SOLVED] MPD Alsa Mixer: Input/output error corp769 Linux - Software 8 07-02-2011 08:47 PM
[SOLVED] ALSA and PulseAudio - recording multiple input devices? Wintershade Linux - Software 4 04-30-2011 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration