libspark/audio: add mixer access methods

Origin commit data
------------------
Branch: master
Commit: 656aef8328
Author: martii <m4rtii@gmx.de>
Date: 2014-06-29 (Sun, 29 Jun 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-06-29 13:00:18 +02:00
parent d92ac0e451
commit 09a2ab30f0
2 changed files with 76 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ typedef enum
AUDIO_FMT_ADVANCED = AUDIO_FMT_MLP
} AUDIO_FORMAT;
class mixerVolume;
class cAudio
{
friend class cPlayback;
@@ -57,6 +59,11 @@ class cAudio
int do_mute(bool enable, bool remember);
void setBypassMode(bool disable);
mixerVolume *mixerAnalog, *mixerHDMI, *mixerSPDIF;
int volumeAnalog, volumeHDMI, volumeSPDIF;
bool mixersMuted;
public:
/* construct & destruct */
cAudio(void *, void *, void *);
@@ -92,7 +99,11 @@ class cAudio
void SetSpdifDD(bool enable);
void ScheduleMute(bool On);
void EnableAnalogOut(bool enable);
void openMixers(void);
void closeMixers(void);
void setMixerVolume(const char *name, long value, bool remember = true);
void muteMixers(bool m = true);
};
#endif