15
15
extern int OutputDevType;
17
void ddaSetConfig(int token, void *value)
18
ddaSetConfig(int token, void *value)
22
/* a switch statement based on the lex/yacc token (defined in
23
../../dia/gram.h) is done here... Ignore any token not handled
24
or understood by this server */
23
/* a switch statement based on the lex/yacc token (defined in
24
../../dia/gram.h) is done here... Ignore any token not handled
25
or understood by this server */
31
if (!strcmp(str, "ext") ||
34
OutputDevType = AUDIO_OUT_EXTERNAL;
35
if (NasConfig.DoDebug)
36
osLogMsg("### Intializing to AUDIO_OUT_EXTERNAL\n");
38
else if (!strcmp(str, "int") ||
41
OutputDevType = AUDIO_OUT_INTERNAL;
42
if (NasConfig.DoDebug)
43
osLogMsg("### Intializing to AUDIO_OUT_INTERNAL\n");
45
else /* default - external */
47
OutputDevType = AUDIO_OUT_EXTERNAL;
48
osLogMsg("ddaSetConfig(): unknown OutDevType '%s'\n", str);
53
default: /* ignore any other tokens */
54
if (NasConfig.DoDebug > 5)
55
osLogMsg("ddaSetConfig(): WARNING: unknown token %d, ignored\n", token);
31
if (!strcmp(str, "ext") || !strcmp(str, "EXT")) {
32
OutputDevType = AUDIO_OUT_EXTERNAL;
33
if (NasConfig.DoDebug)
34
osLogMsg("### Intializing to AUDIO_OUT_EXTERNAL\n");
35
} else if (!strcmp(str, "int") || !strcmp(str, "INT")) {
36
OutputDevType = AUDIO_OUT_INTERNAL;
37
if (NasConfig.DoDebug)
38
osLogMsg("### Intializing to AUDIO_OUT_INTERNAL\n");
39
} else { /* default - external */
41
OutputDevType = AUDIO_OUT_EXTERNAL;
42
osLogMsg("ddaSetConfig(): unknown OutDevType '%s'\n", str);
47
default: /* ignore any other tokens */
48
if (NasConfig.DoDebug > 5)
49
osLogMsg("ddaSetConfig(): WARNING: unknown token %d, ignored\n", token);
60
return; /* that's it... */
63
int ddaProcessArg(int *index, int argc, char *argv[])
65
/* If you have an option that takes an
66
arguement, be sure to increment
67
index after processing the arg,
68
otherwise, leave it alone.
69
DO NOT MODIFY argv! */
71
/* nothing here yet... */
73
/* always return 1 to indicate failure */
79
/* print usage summary for this server,
80
called from UseMsg() in utils.c */
81
ErrorF("\nNo Server specific options supported.\n");
54
return; /* that's it... */
58
ddaProcessArg(int *index, int argc, char *argv[])
60
/* If you have an option that takes an
61
arguement, be sure to increment
62
index after processing the arg,
63
otherwise, leave it alone.
64
DO NOT MODIFY argv! */
66
/* nothing here yet... */
68
/* always return 1 to indicate failure */
75
/* print usage summary for this server,
76
called from UseMsg() in utils.c */
77
ErrorF("\nNo Server specific options supported.\n");