mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed a compilation error on Raspberry Pi.
This commit is contained in:
parent
debf072a0e
commit
b6f15cb8d9
|
@ -26,11 +26,11 @@
|
||||||
// the rest of the volume control code in here compiles and works fine.
|
// the rest of the volume control code in here compiles and works fine.
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#if defined(_RPI_) || defined(_VERO4K_)
|
#if defined(_RPI_) || defined(_VERO4K_)
|
||||||
const std::string VolumeControl::mixerName = "PCM";
|
std::string VolumeControl::mixerName = "PCM";
|
||||||
#else
|
#else
|
||||||
const std::string VolumeControl::mixerName = "Master";
|
std::string VolumeControl::mixerName = "Master";
|
||||||
#endif
|
#endif
|
||||||
const std::string VolumeControl::mixerCard = "default";
|
std::string VolumeControl::mixerCard = "default";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::weak_ptr<VolumeControl> VolumeControl::sInstance;
|
std::weak_ptr<VolumeControl> VolumeControl::sInstance;
|
||||||
|
|
|
@ -30,8 +30,8 @@ class VolumeControl
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
// #error TODO: Not implemented for MacOS yet!!!
|
// #error TODO: Not implemented for MacOS yet!!!
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
static const std::string mixerName;
|
static std::string mixerName;
|
||||||
static const std::string mixerCard;
|
static std::string mixerCard;
|
||||||
int mixerIndex;
|
int mixerIndex;
|
||||||
snd_mixer_t* mixerHandle;
|
snd_mixer_t* mixerHandle;
|
||||||
snd_mixer_elem_t* mixerElem;
|
snd_mixer_elem_t* mixerElem;
|
||||||
|
|
Loading…
Reference in a new issue