#include <math.h>#include "AlsaAudio.h"#include <Y2.h>#include <scr/SCRAgent.h>#include <alsa/asoundlib.h>Defines | |
| #define | __HAVE_ALSA 1 |
| #define | INIT_MIXER |
Functions | |
| YCPValue | alsaGetVolume (int card_id, const string &channel) |
| YCPValue | alsaGetMute (int card_id, const string &channel) |
| YCPBoolean | alsaSetVolume (int card_id, const string &channel, int value) |
| YCPBoolean | alsaSetMute (int card_id, const string &channel, bool value) |
| YCPList | alsaGetChannels (int card_id) |
| YCPList | alsaGetCards () |
| YCPValue | alsaStore (int card) |
| YCPValue | alsaRestore (int card) |
| YCPValue | alsaGetCardName (int card_id) |
| #define __HAVE_ALSA 1 |
| #define INIT_MIXER |
| YCPValue alsaGetCardName | ( | int | card_id | ) |
alsaGetCardName returns (long) name of card
| YCPList alsaGetCards | ( | ) |
getCards returns list of running cards- list of strings
| YCPList alsaGetChannels | ( | int | card | ) |
getChannels- list of available channels for card id
| card | card id |
| YCPValue alsaGetMute | ( | int | card_id, | |
| const string & | channel | |||
| ) |
| YCPValue alsaGetVolume | ( | int | card, | |
| const string & | channel | |||
| ) |
volume reading
| card | card id | |
| channel | channel name |
| YCPValue alsaRestore | ( | int | card = -1 |
) |
restores settings for given card. if card==-1 restore all.
| YCPBoolean alsaSetMute | ( | int | card, | |
| const string & | channel, | |||
| bool | value | |||
| ) |
setMute
| card | card id | |
| channel | channel name | |
| value | boolean mute/unmute |
| YCPBoolean alsaSetVolume | ( | int | card, | |
| const string & | channel, | |||
| int | value | |||
| ) |
volume setting
| card | card id | |
| channel | name eg. "Master" | |
| value | volume 0..100 |
| YCPValue alsaStore | ( | int | card = -1 |
) |
stores setting for given card. if card==-1 store all. param card card id
1.5.3