-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
71 lines (47 loc) · 1.57 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
LEDMETER : An Alsa meter plugin for Linux audio software , driving leds.
This program aims at giving level metering capability to Alsa audio programs
by driving leds in /sys/class/leds.
It can be used also for OSS applications (using alsa-oss, aoss
wrapper and a properly written .asoundrc).
Marc Capdeville <[email protected]>
Base on ameter-0.43 : http://laugeo.free.fr/ameter.html
Laurent Georget <[email protected]>
(This plugin is heavily based on the level meter plugin from
Abramo Bagnara <[email protected]>
(originally with a ncurse display).
Thanks to Andrew Burgess (http://www.cichlid.com) for fixing the aplay problem when interrupting with ctrl+c.
1) Requirements :
- Alsa ( tested with 1.0.25)
2) Compilation :
./configure
make
su -c "make install"
3) Edit (or create) .asoundrc file in your home directory to have the following lines :
pcm_scope.ledmeter {
type ledmeter
}
pcm_scope_type.ledmeter {
lib /usr/local/lib/libledmeter.so
}
pcm.ledmeter {
type meter
slave.pcm 'hw:0,0'
frequency 50
scopes.0 ledmeter
}
( The frequency parameter is the nb of update/sec , 50 is the default value)
4) Test :
Using Glame:
- In audio preferences:
- Set output plugin to alsa_audio_out
- Set output device to ledmeter
(This is ok for playing and recording)
Using aplay/arecord:
aplay -D ledmeter sound.wav
arecord -D ledmeter soundrec.wav
Using mplayer:
mplayer -ao alsa:device=ledmeter /tmp/film.avi
Using alsa-oss:
aoss realplay /usr/lib/RealPlayer8/firstrun.rm
5) Limitations :
- Dont work on capture only device