examples, lang: funcs: core: example: Update vumeter
This patch moves to use the sox package instead of arecord for getting microphone data, and it also validates that both sox and rec and installed. We also add a standalone example.
This commit is contained in:
8
examples/lang/vumeter.mcl
Normal file
8
examples/lang/vumeter.mcl
Normal file
@@ -0,0 +1,8 @@
|
||||
import "example"
|
||||
|
||||
$vumeter = example.vumeter("====", 10, 0.9)
|
||||
|
||||
file "/tmp/vumeter" {
|
||||
state => $const.res.file.state.exists,
|
||||
content => $vumeter,
|
||||
}
|
||||
Reference in New Issue
Block a user