Sound |
volume_routines.ycp |
Routines for sound card volume settings | |
|
|
This module has an unstable interface. |
Imports
Local Functions |
local
setVolume (string group, integer cardid, integer value)
->
boolean
sets volume in percents (0..100) for given card and card_id
- Parameters:
-
group channel cardid card id value volume 0-100
- Return value:
-
success/failure
local
storeVolume (integer card_id)
->
boolean
stores the volume to file. stored volume will be restored after reboot (ALSA only)
- Parameters:
-
card_id card id
- Return value:
-
success/failure
local
PlayTest (integer card_id)
->
string
plays test sound to card #card_id
- Parameters:
-
card_id card id
- Return value:
-
with error message. empty on success
local
sound_start_tmp (boolean restore)
->
void
sound_start_tmp starts alsa using temporary modules.conf
- Parameters:
-
restore true - call alsactl restore, false - don't
local
sound_stop ()
->
void
removes all sound modules from kernel
local
stop_programs ()
->
boolean
stops all programs using sound devices
- Return value:
-
true if nothing's using sound, false otherwise