next up previous contents
Next: 6.7 blobfinder Up: 6. Device Interfaces Previous: 6.5 audiodsp   Contents

Subsections


6.6 audiomixer

Synopsis

The audiomixer interface is used to control sound levels.

Configuration: get levels



struct player_audiomixer_config : The audiomixer interface provides accepts a configuration request which returns the current state of the mixer levels.

uint8_t subtype;
uint16_t masterLeft, masterRight;
uint16_t pcmLeft, pcmRight;
uint16_t lineLeft, lineRight;
uint16_t micLeft, micRight;
uint16_t iGain, oGain;
documentation for these fields goes here

Command



struct player_audiomixer_cmd : The audiomixer interface accepts commands to set the left and right volume levels of various channels. The channel may be PLAYER_AUDIOMIXER_MASTER for the master volume, PLAYER_AUDIOMIXER_PCM for the PCM volume, PLAYER_AUDIOMIXER_LINE for the line in volume, PLAYER_AUDIOMIXER_MIC for the microphone volume, PLAYER_AUDIOMIXER_IGAIN for the input gain, and PLAYER_AUDIOMIXER_OGAIN for the output gain.

uint8_t subtype;
uint16_t left;
uint16_t right;
documentation for these fields goes here



2004-06-02