Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 16 Aug 2018, 09:48
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to capture audio output
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Author Message
greengeek


Joined: 20 Jul 2010
Posts: 5121
Location: Republic of Novo Zelande

PostPosted: Thu 02 Jun 2016, 21:29    Post subject:  

Added an sfs version to my post above for those than don't want to take a risk with installing pets.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5121
Location: Republic of Novo Zelande

PostPosted: Mon 15 Aug 2016, 04:10    Post subject: Re: How to capture audio output
Subject description: A workaround for lack of 'mix' device
 

SFR wrote:
KNOWN ISSUES:
- PCM slider in Alsamixer/Retrovol no longer works

I am finding that alsamixer won't start at all. It gives the following error:
Code:
# alsamixer
invalid card index: "


It appears to be having trouble with the "card" definition in this stanza:


Code:
pcm.looprec {
    type hw
    card "Loopback"
    device 1
    subdevice 0
}


Retrovol runs fine though.

Do you think it might be possible to make any change that keeps alsamixer happy and lets it run (despite the loss of PCM slider as you have indicated) or is this just an unavoidable side effect?

EDIT : Strangely - if I enter "alsamixer version" into a terminal then alsamixer does run! (Wrong syntax to tell me which version but hey, it opens the alsamixer gui!)
It seems to look slightly different (fonts harder to read) but at least it runs. Weird.
cheers!

EDIT 2 : Alsamixer is version 1.0.26 and this is on a Slacko 5.6 derivative.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1660

PostPosted: Mon 15 Aug 2016, 05:35    Post subject:  

greengeek wrote:
Do you think it might be possible to make any change that keeps alsamixer happy and lets it run (despite the loss of PCM slider as you have indicated) or is this just an unavoidable side effect?

Hey Greengeek

Sorry, but I have no slightest idea what and how should be changed, I don't get this syntax at all...
Just tried it in Fatdog and Alsamixer/Retrovol work well (except PCM), but YT in Chrome is mute.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Tue 16 Aug 2016, 08:51    Post subject: linked to topic in Multimedia section.  

information linked to Simple screen recorder, topic in Multimedia section.
_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Wed 12 Oct 2016, 00:00    Post subject: Debate with our french expert, forum francophone  

On translation here for Pelo, the francophone
_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
number77

Joined: 22 Oct 2010
Posts: 646

PostPosted: Tue 09 Jan 2018, 12:13    Post subject:  

Hello
Could anyone bring this thread up to date and explain one or two things, it seemed so useful.
number77
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 908

PostPosted: Sat 28 Jul 2018, 12:20    Post subject:  

Some info at the links below number 77.
I am trying to figure out how to run things without the pain in de ass
"the bloody card is already in use by another programme".
And:
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave

We really need an .asoundrc that will just flow alsa through the system freely, maybe multi might do it.


https://www.alsa-project.org/main/index.php/Asoundrec

https://unix.stackexchange.com/questions/194547/how-can-i-use-alsa-dmix-and-multi-plugins-together

https://github.com/karlstav/cava#from-alsa-loopback-device-tricky


Code:

pcm.snd_card { # my usual sound card
    type hw
    card 0
}

ctl.!default { # default control; alsamixer and such will use this
    type hw
    card 0
}

# software mixer for sound card
pcm.dmixer {
    type dmix
    ipc_key 1024
    ipc_perm 0666 # allow other users
    slave.pcm "snd_card"
    slave {
        period_time 0
        period_size 1024
        buffer_size 4096
        channels 2 # must match bindings
    }
    bindings {
        0 0
        1 1
    }
}

# software mixer for loopback device
pcm.dmixerloop {
    type dmix
    ipc_key 2048
    ipc_perm 0666 # allow other users
    slave.pcm "hw:Loopback,0,0"
    slave {
        period_time 0
        period_size 1024
        buffer_size 4096
        channels 2 # must match bindings
    }
    bindings {
        0 0
        1 1
    }
}

# allows multiple programs to capture simultaneously
pcm.dsnooper {
    type dsnoop
    ipc_key 2048
    ipc_perm 0666
    slave.pcm "snd_card"
    slave
    {
        period_time 0
        period_size 1024
        buffer_size 4096
        channels 2
    }
    bindings {
        0 0
        1 1
    }
}

pcm.!default {
    type asym
    playback.pcm "out"
    capture.pcm "dsnooper"
}

# Multi, splitting onto usual card and loopback
pcm.out {
    type plug
    slave.pcm {
        type multi
        slaves {
            a { channels 2 pcm "dmixer" }
            b { channels 2 pcm "dmixerloop" }
        }
        bindings {
            0 { slave a channel 0 }
            1 { slave a channel 1 }
            2 { slave b channel 0 }
            3 { slave b channel 1 }
        }
    }
    ttable [
        [ 1 0 1 0 ]   # left  -> a.left,  b.left
        [ 0 1 0 1 ]   # right -> a.right, b.right
    ]
}
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1317s ][ Queries: 12 (0.0297s) ][ GZIP on ]