Lines 81-99
Link Here
|
81 |
static char * snd(char * sndType) { |
81 |
static char * snd(char * sndType) { |
82 |
|
82 |
|
83 |
char *daemon = ""; |
83 |
char *daemon = ""; |
84 |
if (strcmp (sndType, "arts") == 0 || |
84 |
FILE *which_pf; |
85 |
strcmp (sndType, "esd") == 0) { |
85 |
char sndserver[1024]; |
86 |
|
86 |
|
87 |
FILE *which_pf; |
87 |
if (strcmp (sndType, "arts") == 0) |
88 |
char sndserver[1024]; |
88 |
which_pf= popen("which artsdsp 2>/dev/null","r"); |
89 |
if (strcmp (sndType, "arts") == 0) |
89 |
else if (strcmp (sndType, "esd") == 0) |
90 |
which_pf= popen("which artsdsp 2>/dev/null","r"); |
90 |
which_pf= popen("which esddsp 2>/dev/null","r"); |
91 |
else |
91 |
else which_pf= popen("which aoss 2>/dev/null","r"); |
92 |
which_pf= popen("which esddsp 2>/dev/null","r"); |
92 |
|
93 |
fscanf(which_pf,"%1023s",sndserver); |
93 |
fscanf(which_pf,"%1023s",sndserver); |
94 |
pclose(which_pf); |
94 |
pclose(which_pf); |
95 |
daemon=sndserver; |
95 |
daemon=sndserver; |
96 |
} |
96 |
|
97 |
return daemon; |
97 |
return daemon; |
98 |
} |
98 |
} |
99 |
|
99 |
|