sdlaudio.c (2700efa3236d20879473d6b9c612f882a1b43dda) | sdlaudio.c (1dd3e4d13d0d59de61de518c9e504cb444782510) |
---|---|
1/* 2 * QEMU SDL 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 --- 414 unchanged lines hidden (view full) --- 423 {.name = "SAMPLES", 424 .tag = AUD_OPT_INT, 425 .valp = &conf.nb_samples, 426 .descr = "Size of SDL buffer in samples"}, 427 { /* End of list */ } 428}; 429 430static struct audio_pcm_ops sdl_pcm_ops = { | 1/* 2 * QEMU SDL 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 --- 414 unchanged lines hidden (view full) --- 423 {.name = "SAMPLES", 424 .tag = AUD_OPT_INT, 425 .valp = &conf.nb_samples, 426 .descr = "Size of SDL buffer in samples"}, 427 { /* End of list */ } 428}; 429 430static struct audio_pcm_ops sdl_pcm_ops = { |
431 sdl_init_out, 432 sdl_fini_out, 433 sdl_run_out, 434 sdl_write_out, 435 sdl_ctl_out, 436 437 NULL, 438 NULL, 439 NULL, 440 NULL, 441 NULL | 431 .init_out = sdl_init_out, 432 .fini_out = sdl_fini_out, 433 .run_out = sdl_run_out, 434 .write = sdl_write_out, 435 .ctl_out = sdl_ctl_out, |
442}; 443 444struct audio_driver sdl_audio_driver = { 445 .name = "sdl", 446 .descr = "SDL http://www.libsdl.org", 447 .options = sdl_options, 448 .init = sdl_audio_init, 449 .fini = sdl_audio_fini, 450 .pcm_ops = &sdl_pcm_ops, 451 .can_be_default = 1, 452 .max_voices_out = 1, 453 .max_voices_in = 0, 454 .voice_size_out = sizeof (SDLVoiceOut), 455 .voice_size_in = 0 456}; | 436}; 437 438struct audio_driver sdl_audio_driver = { 439 .name = "sdl", 440 .descr = "SDL http://www.libsdl.org", 441 .options = sdl_options, 442 .init = sdl_audio_init, 443 .fini = sdl_audio_fini, 444 .pcm_ops = &sdl_pcm_ops, 445 .can_be_default = 1, 446 .max_voices_out = 1, 447 .max_voices_in = 0, 448 .voice_size_out = sizeof (SDLVoiceOut), 449 .voice_size_in = 0 450}; |