wavaudio.c (2700efa3236d20879473d6b9c612f882a1b43dda) wavaudio.c (1dd3e4d13d0d59de61de518c9e504cb444782510)
1/*
2 * QEMU WAV audio driver
3 *
4 * Copyright (c) 2004-2005 Vassili Karpov (malc)
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 225 unchanged lines hidden (view full) ---

234 {.name = "PATH",
235 .tag = AUD_OPT_STR,
236 .valp = &conf.wav_path,
237 .descr = "Path to wave file"},
238 { /* End of list */ }
239};
240
241static struct audio_pcm_ops wav_pcm_ops = {
1/*
2 * QEMU WAV audio driver
3 *
4 * Copyright (c) 2004-2005 Vassili Karpov (malc)
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 225 unchanged lines hidden (view full) ---

234 {.name = "PATH",
235 .tag = AUD_OPT_STR,
236 .valp = &conf.wav_path,
237 .descr = "Path to wave file"},
238 { /* End of list */ }
239};
240
241static struct audio_pcm_ops wav_pcm_ops = {
242 wav_init_out,
243 wav_fini_out,
244 wav_run_out,
245 wav_write_out,
246 wav_ctl_out,
247
248 NULL,
249 NULL,
250 NULL,
251 NULL,
252 NULL
242 .init_out = wav_init_out,
243 .fini_out = wav_fini_out,
244 .run_out = wav_run_out,
245 .write = wav_write_out,
246 .ctl_out = wav_ctl_out,
253};
254
255struct audio_driver wav_audio_driver = {
256 .name = "wav",
257 .descr = "WAV renderer http://wikipedia.org/wiki/WAV",
258 .options = wav_options,
259 .init = wav_audio_init,
260 .fini = wav_audio_fini,
261 .pcm_ops = &wav_pcm_ops,
262 .can_be_default = 0,
263 .max_voices_out = 1,
264 .max_voices_in = 0,
265 .voice_size_out = sizeof (WAVVoiceOut),
266 .voice_size_in = 0
267};
247};
248
249struct audio_driver wav_audio_driver = {
250 .name = "wav",
251 .descr = "WAV renderer http://wikipedia.org/wiki/WAV",
252 .options = wav_options,
253 .init = wav_audio_init,
254 .fini = wav_audio_fini,
255 .pcm_ops = &wav_pcm_ops,
256 .can_be_default = 0,
257 .max_voices_out = 1,
258 .max_voices_in = 0,
259 .voice_size_out = sizeof (WAVVoiceOut),
260 .voice_size_in = 0
261};