Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 97836
Collapse All | Expand All

(-)festival-gaim-1.1/src/festival.c (-12 / +12 lines)
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

Return to bug 97836