mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Remove any pretense that there can be more than one AudioState
This commit is contained in:
parent
b36aa85c7b
commit
1a7dafce1d
16 changed files with 80 additions and 103 deletions
|
@ -98,11 +98,10 @@ static void pcspk_callback(void *opaque, int free)
|
|||
|
||||
int pcspk_audio_init(qemu_irq *pic)
|
||||
{
|
||||
AudioState *audio = AUD_init();
|
||||
PCSpkState *s = &pcspk_state;
|
||||
struct audsettings as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8, 0};
|
||||
|
||||
AUD_register_card(audio, s_spk, &s->card);
|
||||
AUD_register_card(s_spk, &s->card);
|
||||
|
||||
s->voice = AUD_open_out(&s->card, s->voice, s_spk, s, pcspk_callback, &as);
|
||||
if (!s->voice) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue