bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * QEMU Audio subsystem header |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (c) 2003-2005 Vassili Karpov (malc) |
| 5 | * |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 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 |
| 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | * copies of the Software, and to permit persons to whom the Software is |
| 11 | * furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included in |
| 14 | * all copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 22 | * THE SOFTWARE. |
| 23 | */ |
Markus Armbruster | 175de52 | 2016-06-29 15:29:06 +0200 | [diff] [blame] | 24 | |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 25 | #ifndef QEMU_AUDIO_INT_H |
| 26 | #define QEMU_AUDIO_INT_H |
| 27 | |
Gerd Hoffmann | 1ef1ec2 | 2018-03-01 11:05:46 +0100 | [diff] [blame] | 28 | #ifdef CONFIG_AUDIO_COREAUDIO |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 29 | #define FLOAT_MIXENG |
| 30 | /* #define RECIPROCAL */ |
| 31 | #endif |
| 32 | #include "mixeng.h" |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 33 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 34 | struct audio_pcm_ops; |
| 35 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 36 | struct audio_callback { |
| 37 | void *opaque; |
malc | cb4f03e | 2009-10-15 02:40:17 +0400 | [diff] [blame] | 38 | audio_callback_fn fn; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | struct audio_pcm_info { |
| 42 | int bits; |
| 43 | int sign; |
| 44 | int freq; |
| 45 | int nchannels; |
| 46 | int align; |
| 47 | int shift; |
| 48 | int bytes_per_second; |
bellard | d929eba | 2006-07-04 21:47:22 +0000 | [diff] [blame] | 49 | int swap_endianness; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 50 | }; |
| 51 | |
bellard | ec36b69 | 2006-07-16 18:57:03 +0000 | [diff] [blame] | 52 | typedef struct SWVoiceCap SWVoiceCap; |
| 53 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 54 | typedef struct HWVoiceOut { |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 55 | int enabled; |
malc | 713a98f | 2009-09-12 02:28:45 +0400 | [diff] [blame] | 56 | int poll_mode; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 57 | int pending_disable; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 58 | struct audio_pcm_info info; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 59 | |
| 60 | f_sample *clip; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 61 | |
| 62 | int rpos; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 63 | uint64_t ts_helper; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 64 | |
malc | 1ea879e | 2008-12-03 22:48:44 +0000 | [diff] [blame] | 65 | struct st_sample *mix_buf; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 66 | |
| 67 | int samples; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 68 | QLIST_HEAD (sw_out_listhead, SWVoiceOut) sw_head; |
| 69 | QLIST_HEAD (sw_cap_listhead, SWVoiceCap) cap_head; |
Marc-André Lureau | c01b245 | 2012-04-17 14:32:36 +0200 | [diff] [blame] | 70 | int ctl_caps; |
blueswir1 | 35f4b58 | 2008-10-06 18:08:30 +0000 | [diff] [blame] | 71 | struct audio_pcm_ops *pcm_ops; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 72 | QLIST_ENTRY (HWVoiceOut) entries; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 73 | } HWVoiceOut; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 74 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 75 | typedef struct HWVoiceIn { |
| 76 | int enabled; |
malc | 713a98f | 2009-09-12 02:28:45 +0400 | [diff] [blame] | 77 | int poll_mode; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 78 | struct audio_pcm_info info; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 79 | |
| 80 | t_sample *conv; |
| 81 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 82 | int wpos; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 83 | int total_samples_captured; |
| 84 | uint64_t ts_helper; |
| 85 | |
malc | 1ea879e | 2008-12-03 22:48:44 +0000 | [diff] [blame] | 86 | struct st_sample *conv_buf; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 87 | |
| 88 | int samples; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 89 | QLIST_HEAD (sw_in_listhead, SWVoiceIn) sw_head; |
Marc-André Lureau | c01b245 | 2012-04-17 14:32:36 +0200 | [diff] [blame] | 90 | int ctl_caps; |
blueswir1 | 35f4b58 | 2008-10-06 18:08:30 +0000 | [diff] [blame] | 91 | struct audio_pcm_ops *pcm_ops; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 92 | QLIST_ENTRY (HWVoiceIn) entries; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 93 | } HWVoiceIn; |
| 94 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 95 | struct SWVoiceOut { |
malc | 1a7dafc | 2009-05-14 03:11:35 +0400 | [diff] [blame] | 96 | QEMUSoundCard *card; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 97 | struct audio_pcm_info info; |
| 98 | t_sample *conv; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 99 | int64_t ratio; |
malc | 1ea879e | 2008-12-03 22:48:44 +0000 | [diff] [blame] | 100 | struct st_sample *buf; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 101 | void *rate; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 102 | int total_hw_samples_mixed; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 103 | int active; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 104 | int empty; |
| 105 | HWVoiceOut *hw; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 106 | char *name; |
malc | 1ea879e | 2008-12-03 22:48:44 +0000 | [diff] [blame] | 107 | struct mixeng_volume vol; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 108 | struct audio_callback callback; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 109 | QLIST_ENTRY (SWVoiceOut) entries; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 110 | }; |
| 111 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 112 | struct SWVoiceIn { |
malc | 1a7dafc | 2009-05-14 03:11:35 +0400 | [diff] [blame] | 113 | QEMUSoundCard *card; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 114 | int active; |
| 115 | struct audio_pcm_info info; |
| 116 | int64_t ratio; |
| 117 | void *rate; |
| 118 | int total_hw_samples_acquired; |
malc | 1ea879e | 2008-12-03 22:48:44 +0000 | [diff] [blame] | 119 | struct st_sample *buf; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 120 | f_sample *clip; |
| 121 | HWVoiceIn *hw; |
| 122 | char *name; |
malc | 1ea879e | 2008-12-03 22:48:44 +0000 | [diff] [blame] | 123 | struct mixeng_volume vol; |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 124 | struct audio_callback callback; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 125 | QLIST_ENTRY (SWVoiceIn) entries; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 126 | }; |
| 127 | |
Gerd Hoffmann | d3893a3 | 2018-03-06 08:40:47 +0100 | [diff] [blame] | 128 | typedef struct audio_driver audio_driver; |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 129 | struct audio_driver { |
| 130 | const char *name; |
| 131 | const char *descr; |
Kővágó, Zoltán | 7183022 | 2019-03-08 23:34:15 +0100 | [diff] [blame] | 132 | void *(*init) (Audiodev *); |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 133 | void (*fini) (void *); |
blueswir1 | 35f4b58 | 2008-10-06 18:08:30 +0000 | [diff] [blame] | 134 | struct audio_pcm_ops *pcm_ops; |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 135 | int can_be_default; |
| 136 | int max_voices_out; |
| 137 | int max_voices_in; |
| 138 | int voice_size_out; |
| 139 | int voice_size_in; |
Marc-André Lureau | c01b245 | 2012-04-17 14:32:36 +0200 | [diff] [blame] | 140 | int ctl_caps; |
Gerd Hoffmann | d3893a3 | 2018-03-06 08:40:47 +0100 | [diff] [blame] | 141 | QLIST_ENTRY(audio_driver) next; |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 142 | }; |
| 143 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 144 | struct audio_pcm_ops { |
Kővágó, Zoltán | 5706db1 | 2015-06-03 23:03:47 +0200 | [diff] [blame] | 145 | int (*init_out)(HWVoiceOut *hw, struct audsettings *as, void *drv_opaque); |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 146 | void (*fini_out)(HWVoiceOut *hw); |
malc | bdff253 | 2009-09-18 11:37:39 +0400 | [diff] [blame] | 147 | int (*run_out) (HWVoiceOut *hw, int live); |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 148 | int (*write) (SWVoiceOut *sw, void *buf, int size); |
| 149 | int (*ctl_out) (HWVoiceOut *hw, int cmd, ...); |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 150 | |
Kővágó, Zoltán | 5706db1 | 2015-06-03 23:03:47 +0200 | [diff] [blame] | 151 | int (*init_in) (HWVoiceIn *hw, struct audsettings *as, void *drv_opaque); |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 152 | void (*fini_in) (HWVoiceIn *hw); |
| 153 | int (*run_in) (HWVoiceIn *hw); |
| 154 | int (*read) (SWVoiceIn *sw, void *buf, int size); |
| 155 | int (*ctl_in) (HWVoiceIn *hw, int cmd, ...); |
| 156 | }; |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 157 | |
bellard | 8ead62c | 2006-07-04 16:51:32 +0000 | [diff] [blame] | 158 | struct capture_callback { |
| 159 | struct audio_capture_ops ops; |
| 160 | void *opaque; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 161 | QLIST_ENTRY (capture_callback) entries; |
bellard | 8ead62c | 2006-07-04 16:51:32 +0000 | [diff] [blame] | 162 | }; |
| 163 | |
bellard | ec36b69 | 2006-07-16 18:57:03 +0000 | [diff] [blame] | 164 | struct CaptureVoiceOut { |
bellard | 8ead62c | 2006-07-04 16:51:32 +0000 | [diff] [blame] | 165 | HWVoiceOut hw; |
| 166 | void *buf; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 167 | QLIST_HEAD (cb_listhead, capture_callback) cb_head; |
| 168 | QLIST_ENTRY (CaptureVoiceOut) entries; |
bellard | ec36b69 | 2006-07-16 18:57:03 +0000 | [diff] [blame] | 169 | }; |
| 170 | |
| 171 | struct SWVoiceCap { |
| 172 | SWVoiceOut sw; |
| 173 | CaptureVoiceOut *cap; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 174 | QLIST_ENTRY (SWVoiceCap) entries; |
bellard | ec36b69 | 2006-07-16 18:57:03 +0000 | [diff] [blame] | 175 | }; |
bellard | 8ead62c | 2006-07-04 16:51:32 +0000 | [diff] [blame] | 176 | |
Philippe Mathieu-Daudé | fd5283f | 2019-01-11 15:08:53 +0100 | [diff] [blame] | 177 | typedef struct AudioState { |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 178 | struct audio_driver *drv; |
Kővágó, Zoltán | 7183022 | 2019-03-08 23:34:15 +0100 | [diff] [blame] | 179 | Audiodev *dev; |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 180 | void *drv_opaque; |
| 181 | |
| 182 | QEMUTimer *ts; |
Blue Swirl | 72cf2d4 | 2009-09-12 07:36:22 +0000 | [diff] [blame] | 183 | QLIST_HEAD (card_listhead, QEMUSoundCard) card_head; |
| 184 | QLIST_HEAD (hw_in_listhead, HWVoiceIn) hw_head_in; |
| 185 | QLIST_HEAD (hw_out_listhead, HWVoiceOut) hw_head_out; |
| 186 | QLIST_HEAD (cap_listhead, CaptureVoiceOut) cap_head; |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 187 | int nb_hw_voices_out; |
| 188 | int nb_hw_voices_in; |
malc | 978dd63 | 2009-02-18 20:44:04 +0000 | [diff] [blame] | 189 | int vm_running; |
Kővágó, Zoltán | 7183022 | 2019-03-08 23:34:15 +0100 | [diff] [blame] | 190 | int64_t period_ticks; |
Philippe Mathieu-Daudé | fd5283f | 2019-01-11 15:08:53 +0100 | [diff] [blame] | 191 | } AudioState; |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 192 | |
Michael Walle | 00e0767 | 2011-01-05 01:05:47 +0100 | [diff] [blame] | 193 | extern const struct mixeng_volume nominal_volume; |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 194 | |
Kővágó, Zoltán | 7183022 | 2019-03-08 23:34:15 +0100 | [diff] [blame] | 195 | extern const char *audio_prio_list[]; |
| 196 | |
Gerd Hoffmann | d3893a3 | 2018-03-06 08:40:47 +0100 | [diff] [blame] | 197 | void audio_driver_register(audio_driver *drv); |
| 198 | audio_driver *audio_driver_lookup(const char *name); |
| 199 | |
malc | 1ea879e | 2008-12-03 22:48:44 +0000 | [diff] [blame] | 200 | void audio_pcm_init_info (struct audio_pcm_info *info, struct audsettings *as); |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 201 | void audio_pcm_info_clear_buf (struct audio_pcm_info *info, void *buf, int len); |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 202 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 203 | int audio_pcm_sw_write (SWVoiceOut *sw, void *buf, int len); |
| 204 | int audio_pcm_hw_get_live_in (HWVoiceIn *hw); |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 205 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 206 | int audio_pcm_sw_read (SWVoiceIn *sw, void *buf, int len); |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 207 | |
malc | ddabec7 | 2009-09-18 10:59:38 +0400 | [diff] [blame] | 208 | int audio_pcm_hw_clip_out (HWVoiceOut *hw, void *pcm_buf, |
| 209 | int live, int pending); |
| 210 | |
bellard | c0fe382 | 2005-11-05 18:55:28 +0000 | [diff] [blame] | 211 | int audio_bug (const char *funcname, int cond); |
| 212 | void *audio_calloc (const char *funcname, int nmemb, size_t size); |
| 213 | |
malc | 713a98f | 2009-09-12 02:28:45 +0400 | [diff] [blame] | 214 | void audio_run (const char *msg); |
| 215 | |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 216 | #define VOICE_ENABLE 1 |
| 217 | #define VOICE_DISABLE 2 |
Marc-André Lureau | 6c95ab9 | 2012-04-17 14:32:35 +0200 | [diff] [blame] | 218 | #define VOICE_VOLUME 3 |
bellard | fb06518 | 2004-11-09 23:09:44 +0000 | [diff] [blame] | 219 | |
Marc-André Lureau | c01b245 | 2012-04-17 14:32:36 +0200 | [diff] [blame] | 220 | #define VOICE_VOLUME_CAP (1 << VOICE_VOLUME) |
| 221 | |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 222 | static inline int audio_ring_dist (int dst, int src, int len) |
| 223 | { |
| 224 | return (dst >= src) ? (dst - src) : (len - src + dst); |
| 225 | } |
| 226 | |
Stefan Weil | 87e613e | 2013-06-16 11:19:31 +0200 | [diff] [blame] | 227 | #define dolog(fmt, ...) AUD_log(AUDIO_CAP, fmt, ## __VA_ARGS__) |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 228 | |
| 229 | #ifdef DEBUG |
Stefan Weil | 87e613e | 2013-06-16 11:19:31 +0200 | [diff] [blame] | 230 | #define ldebug(fmt, ...) AUD_log(AUDIO_CAP, fmt, ## __VA_ARGS__) |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 231 | #else |
Stefan Weil | 87e613e | 2013-06-16 11:19:31 +0200 | [diff] [blame] | 232 | #define ldebug(fmt, ...) (void)0 |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 233 | #endif |
bellard | 1d14ffa | 2005-10-30 18:58:22 +0000 | [diff] [blame] | 234 | |
| 235 | #define AUDIO_STRINGIFY_(n) #n |
| 236 | #define AUDIO_STRINGIFY(n) AUDIO_STRINGIFY_(n) |
| 237 | |
Kővágó, Zoltán | 7183022 | 2019-03-08 23:34:15 +0100 | [diff] [blame] | 238 | typedef struct AudiodevListEntry { |
| 239 | Audiodev *dev; |
| 240 | QSIMPLEQ_ENTRY(AudiodevListEntry) next; |
| 241 | } AudiodevListEntry; |
| 242 | |
| 243 | typedef QSIMPLEQ_HEAD(, AudiodevListEntry) AudiodevListHead; |
| 244 | AudiodevListHead audio_handle_legacy_opts(void); |
| 245 | |
| 246 | void audio_free_audiodev_list(AudiodevListHead *head); |
| 247 | |
| 248 | void audio_create_pdos(Audiodev *dev); |
| 249 | AudiodevPerDirectionOptions *audio_get_pdo_in(Audiodev *dev); |
| 250 | AudiodevPerDirectionOptions *audio_get_pdo_out(Audiodev *dev); |
| 251 | |
Markus Armbruster | 175de52 | 2016-06-29 15:29:06 +0200 | [diff] [blame] | 252 | #endif /* QEMU_AUDIO_INT_H */ |