mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-26 01:31:09 +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("mousewheelmode", 1);
|
||||||
PrefsReplaceInt32("mousewheellines", 3);
|
PrefsReplaceInt32("mousewheellines", 3);
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (access("/dev/.devfsd", F_OK) < 0) {
|
if (access("/dev/sound/dsp", F_OK) == 0) {
|
||||||
PrefsReplaceString("dsp", "/dev/dsp");
|
|
||||||
PrefsReplaceString("mixer", "/dev/mixer");
|
|
||||||
} else {
|
|
||||||
PrefsReplaceString("dsp", "/dev/sound/dsp");
|
PrefsReplaceString("dsp", "/dev/sound/dsp");
|
||||||
|
} else {
|
||||||
|
PrefsReplaceString("dsp", "/dev/dsp");
|
||||||
|
}
|
||||||
|
if (access("/dev/sound/mixer", F_OK) == 0) {
|
||||||
PrefsReplaceString("mixer", "/dev/sound/mixer");
|
PrefsReplaceString("mixer", "/dev/sound/mixer");
|
||||||
|
} else {
|
||||||
|
PrefsReplaceString("mixer", "/dev/mixer");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
PrefsReplaceString("dsp", "/dev/dsp");
|
PrefsReplaceString("dsp", "/dev/dsp");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user