107 |
|
PrefsReplaceInt32("mousewheelmode", 1); |
108 |
|
PrefsReplaceInt32("mousewheellines", 3); |
109 |
|
#ifdef __linux__ |
110 |
< |
if (access("/dev/.devfsd", F_OK) < 0) { |
111 |
< |
PrefsReplaceString("dsp", "/dev/dsp"); |
112 |
< |
PrefsReplaceString("mixer", "/dev/mixer"); |
113 |
< |
} else { |
110 |
> |
if (access("/dev/sound/dsp", F_OK) == 0) { |
111 |
|
PrefsReplaceString("dsp", "/dev/sound/dsp"); |
112 |
+ |
} else { |
113 |
+ |
PrefsReplaceString("dsp", "/dev/dsp"); |
114 |
+ |
} |
115 |
+ |
if (access("/dev/sound/mixer", F_OK) == 0) { |
116 |
|
PrefsReplaceString("mixer", "/dev/sound/mixer"); |
117 |
+ |
} else { |
118 |
+ |
PrefsReplaceString("mixer", "/dev/mixer"); |
119 |
|
} |
120 |
|
#else |
121 |
|
PrefsReplaceString("dsp", "/dev/dsp"); |