cmixer: update to 0.3.
This commit is contained in:
parent
7cbe9c2260
commit
b70f3d9de5
2 changed files with 3 additions and 37 deletions
|
@ -1,34 +0,0 @@
|
|||
--- cmixer.pl.orig
|
||||
+++ cmixer.pl
|
||||
@@ -34,23 +34,6 @@
|
||||
|
||||
sub read_mixerctl {
|
||||
my $self = shift;
|
||||
- foreach (`mixerctl 2>&1`) {
|
||||
- #mixerctl: /dev/mixer: Device not configured
|
||||
- die "No mixer device found" if (/^mixerctl: \/dev\/mixer.: Device not configured$/);
|
||||
- #outputs.master=255,255 volume
|
||||
- if (/^(outputs|inputs|record)\.([^\.]*)=(\d+),(\d+)\s+/) {
|
||||
- $self->{mixer}{$1}{$2}{volume}{left} = $3;
|
||||
- $self->{mixer}{$1}{$2}{volume}{right} = $4;
|
||||
- # outputs.mono=255 volume
|
||||
- } elsif (/^(outputs|inputs|record)\.([^\.]*)=(\d+)\s+/) {
|
||||
- $self->{mixer}{$1}{$2}{volume}{center} = $3;
|
||||
- # outputs.master.mute=off [ off on ]
|
||||
- } elsif (/^(outputs|inputs|record)\.(.*)\.mute=(on|off)\s+/) {
|
||||
- $self->{mixer}{$1}{$2}{mute} = $3;
|
||||
- }
|
||||
- #todo: record.source=mic [ mic cd video aux line mixerout mixeroutmono phone ]
|
||||
- #inputs.mix_source=mic,beep,hp { mic mic2 beep hp }
|
||||
- }
|
||||
foreach (`aucatctl 2>&1`) {
|
||||
die "Failed to connect to sndiod" if (/couldn't open MIDI device$/);
|
||||
#mplayer0=127
|
||||
@@ -59,7 +42,6 @@
|
||||
$self->{mixer}{sndio}{$1}{volume}{center} = 2 * $2;
|
||||
}
|
||||
}
|
||||
- die "No outputs found" unless (exists $self->{mixer}{outputs});
|
||||
}
|
||||
|
||||
sub update_view {
|
|
@ -1,14 +1,14 @@
|
|||
# Template file for 'cmixer'
|
||||
pkgname=cmixer
|
||||
version=0.2
|
||||
version=0.3
|
||||
revision=1
|
||||
depends="aucatctl perl-Curses-UI"
|
||||
depends="sndio>=1.7.0_1 perl-Curses-UI"
|
||||
short_desc="Curses sndio mixer"
|
||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||
license="ISC"
|
||||
homepage="https://rhaalovely.net/"
|
||||
distfiles="https://rhaalovely.net/stuff/cmixer-${version}.tar.gz"
|
||||
checksum=1ee4489a73f15b0a4a1c5698ac4476295b53c054c08a98ae94087f0f14104007
|
||||
checksum=5b5dc5fbddf635874941e717752e7f8c6b1054bb8262dbfa3ac42898fedd42b0
|
||||
|
||||
post_extract() {
|
||||
sed -n '3,15p' cmixer.pl >LICENSE
|
||||
|
|
Loading…
Reference in a new issue