AlsaAudio.h File Reference

#include <Y2.h>
#include <scr/SCRAgent.h>

Go to the source code of this file.

Functions

YCPBoolean alsaSetVolume (int card, const string &channel, int value)
YCPValue alsaGetVolume (int card, const string &channel)
YCPBoolean alsaSetMute (int card, const string &channel, bool value)
YCPValue alsaGetMute (int card, const string &channel)
YCPList alsaGetChannels (int card)
YCPList alsaGetCards ()
YCPValue alsaGetCardName (int card_id)
YCPValue alsaStore (int card=-1)
YCPValue alsaRestore (int card=-1)


Function Documentation

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 card id

Parameters:
card card id

References YCPList::add(), and INIT_MIXER.

Referenced by AudioAgent::Dir().

YCPValue alsaGetMute ( int  card,
const string &  channel 
)

References INIT_MIXER.

Referenced by AudioAgent::Read().

YCPValue alsaGetVolume ( int  card,
const string &  channel 
)

volume reading

Parameters:
card card id
channel channel name

References INIT_MIXER.

Referenced by AudioAgent::Read().

YCPValue alsaRestore ( int  card = -1  ) 

restores settings for given card. if card==-1 restore all.

References y2debug.

Referenced by AudioAgent::Execute().

YCPBoolean alsaSetMute ( int  card,
const string &  channel,
bool  value 
)

setMute

Parameters:
card card id
channel channel name
value boolean mute/unmute

References INIT_MIXER.

Referenced by AudioAgent::Write().

YCPBoolean alsaSetVolume ( int  card,
const string &  channel,
int  value 
)

volume setting

Parameters:
card card id
channel name eg. "Master"
value volume 0..100

References INIT_MIXER.

Referenced by AudioAgent::Write().

YCPValue alsaStore ( int  card = -1  ) 

stores setting for given card. if card==-1 store all. param card card id

References y2debug.

Referenced by AudioAgent::Execute().


Generated on Sat Jun 7 04:35:04 2008 for yast2-sound by  doxygen 1.5.5