IOutputLevels
#include "crosspad/audio/IOutputLevels.hpp"Generated from crosspad/audio/IOutputLevels.hpp in crosspad-core. Edit the header’s doxygen comments to change this page.
crosspad::IOutputLevels
Section titled “crosspad::IOutputLevels”The board’s physical audio outputs the built-in speakers, the jacks each at its own level, set in the hardware after the DAC: turning one down costs no resolution and takes the hiss down with it.
One mixer output can feed more than one of them (the speakers and a jack beside them hear the same stream), and here they still have a level each.
Members
| Member | Description |
|---|---|
outputs | |
name | What the board calls output o (“Speakers”, “Out 1/2”). |
mixerOutput | The mixer output whose signal it carries, as AudioMixerEngine names it. |
level | 0..100. |
setLevel | Clamped to 0..100; kept across boots. |
muted | Silenced, as the hardware can: a speaker amp switched off, a jack at its codec’s lowest step. |
setMuted | Kept across boots. |
Methods
outputs
Section titled “outputs”virtual int outputs() const =0virtual const char * name(int o) const =0What the board calls output o (“Speakers”, “Out 1/2”).
mixerOutput
Section titled “mixerOutput”virtual const char * mixerOutput(int o) const =0The mixer output whose signal it carries, as AudioMixerEngine names it.
virtual int level(int o) const =00..100.
setLevel
Section titled “setLevel”virtual bool setLevel(int o, int level) = 0Clamped to 0..100; kept across boots.
virtual bool muted(int o) const =0Silenced, as the hardware can: a speaker amp switched off, a jack at its codec’s lowest step.
The level is kept for when it comes back.
setMuted
Section titled “setMuted”virtual bool setMuted(int o, bool muted) = 0Kept across boots.
Declared in crosspad/audio/IOutputLevels.hpp:11.