comparison src/audio/openbsd/SDL_openbsdaudio.c @ 1186:0276947bee66

Patched OpenBSD audio to compile on newer GCC versions.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 22 Nov 2005 15:11:33 +0000
parents b8d311d90021
children 3692456e7b0f
comparison
equal deleted inserted replaced
1185:58538e140e2d 1186:0276947bee66
260 if(ioctl(audio_fd, AUDIO_GETINFO, &info) < 0) { 260 if(ioctl(audio_fd, AUDIO_GETINFO, &info) < 0) {
261 fprintf(stderr,"AUDIO_GETINFO failed.\n"); 261 fprintf(stderr,"AUDIO_GETINFO failed.\n");
262 return; 262 return;
263 } 263 }
264 264
265 fprintf(stderr," 265 fprintf(stderr,"\n"
266 [play/record info] 266 "[play/record info]\n"
267 buffer size : %d bytes 267 "buffer size : %d bytes\n"
268 sample rate : %i Hz 268 "sample rate : %i Hz\n"
269 channels : %i 269 "channels : %i\n"
270 precision : %i-bit 270 "precision : %i-bit\n"
271 encoding : 0x%x 271 "encoding : 0x%x\n"
272 seek : %i 272 "seek : %i\n"
273 sample count : %i 273 "sample count : %i\n"
274 EOF count : %i 274 "EOF count : %i\n"
275 paused : %s 275 "paused : %s\n"
276 error occured : %s 276 "error occured : %s\n"
277 waiting : %s 277 "waiting : %s\n"
278 active : %s 278 "active : %s\n"
279 ", 279 "",
280 info.play.buffer_size, 280 info.play.buffer_size,
281 info.play.sample_rate, 281 info.play.sample_rate,
282 info.play.channels, 282 info.play.channels,
283 info.play.precision, 283 info.play.precision,
284 info.play.encoding, 284 info.play.encoding,
288 info.play.pause ? "yes" : "no", 288 info.play.pause ? "yes" : "no",
289 info.play.error ? "yes" : "no", 289 info.play.error ? "yes" : "no",
290 info.play.waiting ? "yes" : "no", 290 info.play.waiting ? "yes" : "no",
291 info.play.active ? "yes": "no"); 291 info.play.active ? "yes": "no");
292 292
293 fprintf(stderr," 293 fprintf(stderr,"\n"
294 [audio info] 294 "[audio info]\n"
295 monitor_gain : %i 295 "monitor_gain : %i\n"
296 hw block size : %d bytes 296 "hw block size : %d bytes\n"
297 hi watermark : %i 297 "hi watermark : %i\n"
298 lo watermark : %i 298 "lo watermark : %i\n"
299 audio mode : %s 299 "audio mode : %s\n"
300 ", 300 "",
301 info.monitor_gain, 301 info.monitor_gain,
302 info.blocksize, 302 info.blocksize,
303 info.hiwat, info.lowat, 303 info.hiwat, info.lowat,
304 (info.mode == AUMODE_PLAY) ? "PLAY" 304 (info.mode == AUMODE_PLAY) ? "PLAY"
305 : (info.mode = AUMODE_RECORD) ? "RECORD" 305 : (info.mode = AUMODE_RECORD) ? "RECORD"