mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-19 09:30:56 +00:00
modernized Linux sound device selection (synced to B2)
This commit is contained in:
parent
9cdff5117f
commit
b8a4568cae
@ -107,12 +107,15 @@ void AddPlatformPrefsDefaults(void)
|
||||
PrefsReplaceInt32("mousewheelmode", 1);
|
||||
PrefsReplaceInt32("mousewheellines", 3);
|
||||
#ifdef __linux__
|
||||
if (access("/dev/.devfsd", F_OK) < 0) {
|
||||
PrefsReplaceString("dsp", "/dev/dsp");
|
||||
PrefsReplaceString("mixer", "/dev/mixer");
|
||||
} else {
|
||||
if (access("/dev/sound/dsp", F_OK) == 0) {
|
||||
PrefsReplaceString("dsp", "/dev/sound/dsp");
|
||||
} else {
|
||||
PrefsReplaceString("dsp", "/dev/dsp");
|
||||
}
|
||||
if (access("/dev/sound/mixer", F_OK) == 0) {
|
||||
PrefsReplaceString("mixer", "/dev/sound/mixer");
|
||||
} else {
|
||||
PrefsReplaceString("mixer", "/dev/mixer");
|
||||
}
|
||||
#else
|
||||
PrefsReplaceString("dsp", "/dev/dsp");
|
||||
|
Loading…
Reference in New Issue
Block a user