noaudio.c (bee37f32d47a6c04ff57d18e01cf296607e22b30) noaudio.c (1dd3e4d13d0d59de61de518c9e504cb444782510)
1/*
2 * QEMU Timer based audio emulation
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

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

141}
142
143static void no_audio_fini (void *opaque)
144{
145 (void) opaque;
146}
147
148static struct audio_pcm_ops no_pcm_ops = {
1/*
2 * QEMU Timer based audio emulation
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

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

141}
142
143static void no_audio_fini (void *opaque)
144{
145 (void) opaque;
146}
147
148static struct audio_pcm_ops no_pcm_ops = {
149 no_init_out,
150 no_fini_out,
151 no_run_out,
152 no_write,
153 no_ctl_out,
149 .init_out = no_init_out,
150 .fini_out = no_fini_out,
151 .run_out = no_run_out,
152 .write = no_write,
153 .ctl_out = no_ctl_out,
154
154
155 no_init_in,
156 no_fini_in,
157 no_run_in,
158 no_read,
159 no_ctl_in
155 .init_in = no_init_in,
156 .fini_in = no_fini_in,
157 .run_in = no_run_in,
158 .read = no_read,
159 .ctl_in = no_ctl_in
160};
161
162struct audio_driver no_audio_driver = {
163 .name = "none",
164 .descr = "Timer based audio emulation",
165 .options = NULL,
166 .init = no_audio_init,
167 .fini = no_audio_fini,
168 .pcm_ops = &no_pcm_ops,
169 .can_be_default = 1,
170 .max_voices_out = INT_MAX,
171 .max_voices_in = INT_MAX,
172 .voice_size_out = sizeof (NoVoiceOut),
173 .voice_size_in = sizeof (NoVoiceIn)
174};
160};
161
162struct audio_driver no_audio_driver = {
163 .name = "none",
164 .descr = "Timer based audio emulation",
165 .options = NULL,
166 .init = no_audio_init,
167 .fini = no_audio_fini,
168 .pcm_ops = &no_pcm_ops,
169 .can_be_default = 1,
170 .max_voices_out = INT_MAX,
171 .max_voices_in = INT_MAX,
172 .voice_size_out = sizeof (NoVoiceOut),
173 .voice_size_in = sizeof (NoVoiceIn)
174};