
functions
files
intro
|
|
Sound
|
volume_routines.ycp
|
Routines for sound card volume settings
|
|
|
Imports
- Arch
- Directory
- Mode
- Popup
- Sound
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:
local storeVolume (integer card_id) -> boolean
|
|
stores the volume to file. stored volume will be restored after reboot
(ALSA only)
- Parameters:
- Return value:
local PlayTest (integer card_id) -> string
|
|
plays test sound to card #card_id
- Parameters:
- 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 |
|