Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Examples

OSSAudio.cc File Reference

#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/soundcard.h>
#include <Y2.h>
#include <scr/SCRAgent.h>
#include "OSSAudio.h"

Functions

int ossDevice (const string channel)
YCPBoolean ossSetVolume (const string card, const string channel, const int value)
YCPValue ossGetVolume (const string card, const string channel)

Variables

char * ossChannels [] = SOUND_DEVICE_LABELS
int ossChannels_num = SOUND_MIXER_NRDEVICES

Function Documentation

int ossDevice const string  channel  ) 
 

convert channel string to oss device number FIXME: use ossChannels for convertion [make a map in constructor -> search]

YCPValue ossGetVolume const string  card,
const string  channel
 

volume reading

Parameters:
card card id (default if empty)
channel channel name (Master if empty)

YCPBoolean ossSetVolume const string  card,
const string  channel,
const int  value
 

volume setting

Parameters:
card card id (default if empty)
channel name eg. "Master" ("Master" if empty)
value volume 0..100


Variable Documentation

char* ossChannels[] = SOUND_DEVICE_LABELS
 

int ossChannels_num = SOUND_MIXER_NRDEVICES
 


Generated on Wed Mar 23 16:31:26 2005 for yast2-sound by  doxygen 1.4.1