mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Skip "Default sound device" on Linux
Sound on Linux is handled by PulseAudio, which creates a sink and offers a central place to control which sources are distributed how and where. Applications in general are expected to only offer volume controls. Tested with 0 A.D., SuperTuxKart and a few media players, none of which offers selecting sink directly. As per https://en.wikipedia.org/wiki/PulseAudio#Adoption it should covert vast majority of uses.
This commit is contained in:
@@ -1316,9 +1316,11 @@ static void window_options_invalidate(rct_window *w)
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_COMMON_FORMAT_ARGS, uint16) = STR_SOUND_NONE;
|
||||
}
|
||||
else {
|
||||
#ifndef __linux__
|
||||
if (currentSoundDevice == 0)
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_COMMON_FORMAT_ARGS, uint16) = 5510;
|
||||
else
|
||||
#endif // __linux__
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_COMMON_FORMAT_ARGS, uint16) = 1170;
|
||||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_COMMON_FORMAT_ARGS + 2, uint32) = (uint32)gAudioDevices[currentSoundDevice].name;
|
||||
|
||||
Reference in New Issue
Block a user