yast2-sound
|
#include <YCP.h>
Go to the source code of this file.
Functions | |
YCPBoolean | alsaSetVolume (int card, const string &channel_name, int value) |
YCPValue | alsaGetVolume (int card, const string &channel_name) |
YCPBoolean | alsaSetMute (int card, const string &channel_name, bool value) |
YCPValue | alsaGetMute (int card, const string &channel_name) |
YCPList | alsaGetChannels (int card) |
YCPList | alsaGetCards () |
YCPValue | alsaGetCardName (int card_id) |
YCPValue | alsaStore (int card=-1) |
YCPValue | alsaRestore (int card=-1) |
YCPValue alsaGetCardName | ( | int | card_id | ) |
alsaGetCardName returns (long) name of card
Referenced by AudioAgent::Read().
YCPList alsaGetCards | ( | ) |
getCards returns list of running cards- list of strings
References YCPList::add(), and str.
Referenced by AudioAgent::Dir().
YCPList alsaGetChannels | ( | int | card | ) |
getChannels- list of available channels for the card
card | card id |
References YCPList::add(), YastChannelId::asString(), YastChannelId::index(), INIT_MIXER, YastChannelId::name(), and y2milestone.
Referenced by AudioAgent::Dir().
YCPValue alsaGetMute | ( | int | card, |
const string & | channel_name | ||
) |
References YastChannelId::index(), INIT_MIXER, YastChannelId::name(), y2debug, and y2warning.
Referenced by AudioAgent::Read().
YCPValue alsaGetVolume | ( | int | card, |
const string & | channel_name | ||
) |
volume reading
card | card id |
channel_name | channel name |
References YastChannelId::index(), INIT_MIXER, YastChannelId::name(), y2debug, and y2warning.
Referenced by AudioAgent::Read().
YCPValue alsaRestore | ( | int | card = -1 | ) |
restores settings for given card. if card==-1 restore all.
References y2milestone.
Referenced by AudioAgent::Execute().
YCPBoolean alsaSetMute | ( | int | card, |
const string & | channel_name, | ||
bool | value | ||
) |
setMute
card | card id |
channel_name | channel name |
value | boolean mute/unmute |
References INIT_MIXER, y2debug, and y2warning.
Referenced by AudioAgent::Write().
YCPBoolean alsaSetVolume | ( | int | card, |
const string & | channel_name, | ||
int | value | ||
) |
volume setting
card | card id |
channel_name | name eg. "Master" |
value | volume 0..100 |
References YastChannelId::index(), INIT_MIXER, YastChannelId::name(), y2debug, and y2warning.
Referenced by AudioAgent::Write().
YCPValue alsaStore | ( | int | card = -1 | ) |
stores setting for given card. if card==-1 store all. param card card id
References y2milestone.
Referenced by AudioAgent::Execute().