77 |
queue_lo = queue_hi = 0; |
queue_lo = queue_hi = 0; |
78 |
|
|
79 |
audioconfig = alNewConfig(); |
audioconfig = alNewConfig(); |
80 |
if (audioconfig < 0) |
if (audioconfig == (ALconfig) 0) |
81 |
{ |
{ |
82 |
fprintf(stderr, "wave_out_open: alNewConfig failed: %s\n", |
fprintf(stderr, "wave_out_open: alNewConfig failed: %s\n", |
83 |
alGetErrorString(oserror())); |
alGetErrorString(oserror())); |
159 |
#endif |
#endif |
160 |
} |
} |
161 |
|
|
162 |
/* Limited support to configure an opened audio port in IRIX The |
/* Limited support to configure an opened audio port in IRIX. The |
163 |
number of channels is a static setting and can not be changed after |
number of channels is a static setting and can not be changed after |
164 |
a port is opened. So if the number of channels remains the same, we |
a port is opened. So if the number of channels remains the same, we |
165 |
can configure other settings Otherwise we have to reopen the audio |
can configure other settings; otherwise we have to reopen the audio |
166 |
port, using same config. */ |
port, using same config. */ |
167 |
|
|
168 |
channels = pwfx->nChannels; |
channels = pwfx->nChannels; |