ossaudio.c (2700efa3236d20879473d6b9c612f882a1b43dda) ossaudio.c (1dd3e4d13d0d59de61de518c9e504cb444782510)
1/*
2 * QEMU OSS audio driver
3 *
4 * Copyright (c) 2003-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

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

759 {.name = "DEBUG",
760 .tag = AUD_OPT_BOOL,
761 .valp = &conf.debug,
762 .descr = "Turn on some debugging messages"},
763 { /* End of list */ }
764};
765
766static struct audio_pcm_ops oss_pcm_ops = {
1/*
2 * QEMU OSS audio driver
3 *
4 * Copyright (c) 2003-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

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

759 {.name = "DEBUG",
760 .tag = AUD_OPT_BOOL,
761 .valp = &conf.debug,
762 .descr = "Turn on some debugging messages"},
763 { /* End of list */ }
764};
765
766static struct audio_pcm_ops oss_pcm_ops = {
767 oss_init_out,
768 oss_fini_out,
769 oss_run_out,
770 oss_write,
771 oss_ctl_out,
767 .init_out = oss_init_out,
768 .fini_out = oss_fini_out,
769 .run_out = oss_run_out,
770 .write = oss_write,
771 .ctl_out = oss_ctl_out,
772
772
773 oss_init_in,
774 oss_fini_in,
775 oss_run_in,
776 oss_read,
777 oss_ctl_in
773 .init_in = oss_init_in,
774 .fini_in = oss_fini_in,
775 .run_in = oss_run_in,
776 .read = oss_read,
777 .ctl_in = oss_ctl_in
778};
779
780struct audio_driver oss_audio_driver = {
781 .name = "oss",
782 .descr = "OSS http://www.opensound.com",
783 .options = oss_options,
784 .init = oss_audio_init,
785 .fini = oss_audio_fini,
786 .pcm_ops = &oss_pcm_ops,
787 .can_be_default = 1,
788 .max_voices_out = INT_MAX,
789 .max_voices_in = INT_MAX,
790 .voice_size_out = sizeof (OSSVoiceOut),
791 .voice_size_in = sizeof (OSSVoiceIn)
792};
778};
779
780struct audio_driver oss_audio_driver = {
781 .name = "oss",
782 .descr = "OSS http://www.opensound.com",
783 .options = oss_options,
784 .init = oss_audio_init,
785 .fini = oss_audio_fini,
786 .pcm_ops = &oss_pcm_ops,
787 .can_be_default = 1,
788 .max_voices_out = INT_MAX,
789 .max_voices_in = INT_MAX,
790 .voice_size_out = sizeof (OSSVoiceOut),
791 .voice_size_in = sizeof (OSSVoiceIn)
792};