]>
Commit | Line | Data |
---|---|---|
cd77bbf5 | 1 | --- doomlegacy_src/linux_x/musserv/sequencer.c.orig Sat Feb 22 21:25:59 2003 |
2 | +++ doomlegacy_src/linux_x/musserv/sequencer.c Sat Feb 22 21:27:23 2003 | |
3 | @@ -177,11 +177,7 @@ | |
4 | seq_dev = num_fm; | |
5 | ||
6 | sndstat = fopen("/dev/sndstat", "r"); | |
7 | - if (sndstat == NULL) | |
8 | - { | |
9 | - printf("musserver: could not open /dev/sndstat, exiting.\n"); | |
10 | - exit(1); | |
11 | - } | |
12 | + if (sndstat != NULL) { | |
13 | fgets(sndver, 100, sndstat); | |
14 | for (x = 0; x < strlen(sndver); x++) | |
15 | if (sndver[x] == '-') | |
16 | @@ -199,6 +195,9 @@ | |
17 | } | |
18 | voxdate = atoi(snddate); | |
19 | fclose(sndstat); | |
20 | + } else { | |
21 | + voxdate = 0; /* kernel 2.4 doesn't have sndstat */ | |
22 | + } | |
23 | ||
24 | voices = malloc(sinfo[seq_dev].nr_voices * sizeof(struct synth_voice)); | |
25 | for (x = 0; x < sinfo[seq_dev].nr_voices; x++) |