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

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

1074 {.name = "BUFSIZE_IN",
1075 .tag = AUD_OPT_INT,
1076 .valp = &conf.bufsize_in,
1077 .descr = "(undocumented)"},
1078 { /* End of list */ }
1079};
1080
1081static struct audio_pcm_ops dsound_pcm_ops = {
1/*
2 * QEMU DirectSound audio driver
3 *
4 * Copyright (c) 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

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

1074 {.name = "BUFSIZE_IN",
1075 .tag = AUD_OPT_INT,
1076 .valp = &conf.bufsize_in,
1077 .descr = "(undocumented)"},
1078 { /* End of list */ }
1079};
1080
1081static struct audio_pcm_ops dsound_pcm_ops = {
1082 dsound_init_out,
1083 dsound_fini_out,
1084 dsound_run_out,
1085 dsound_write,
1086 dsound_ctl_out,
1082 .init_out = dsound_init_out,
1083 .fini_out = dsound_fini_out,
1084 .run_out = dsound_run_out,
1085 .write = dsound_write,
1086 .ctl_out = dsound_ctl_out,
1087
1087
1088 dsound_init_in,
1089 dsound_fini_in,
1090 dsound_run_in,
1091 dsound_read,
1092 dsound_ctl_in
1088 .init_in = dsound_init_in,
1089 .fini_in = dsound_fini_in,
1090 .run_in = dsound_run_in,
1091 .read = dsound_read,
1092 .ctl_in = dsound_ctl_in
1093};
1094
1095struct audio_driver dsound_audio_driver = {
1096 .name = "dsound",
1097 .descr = "DirectSound http://wikipedia.org/wiki/DirectSound",
1098 .options = dsound_options,
1099 .init = dsound_audio_init,
1100 .fini = dsound_audio_fini,
1101 .pcm_ops = &dsound_pcm_ops,
1102 .can_be_default = 1,
1103 .max_voices_out = INT_MAX,
1104 .max_voices_in = 1,
1105 .voice_size_out = sizeof (DSoundVoiceOut),
1106 .oice_size_in = sizeof (DSoundVoiceIn)
1107};
1093};
1094
1095struct audio_driver dsound_audio_driver = {
1096 .name = "dsound",
1097 .descr = "DirectSound http://wikipedia.org/wiki/DirectSound",
1098 .options = dsound_options,
1099 .init = dsound_audio_init,
1100 .fini = dsound_audio_fini,
1101 .pcm_ops = &dsound_pcm_ops,
1102 .can_be_default = 1,
1103 .max_voices_out = INT_MAX,
1104 .max_voices_in = 1,
1105 .voice_size_out = sizeof (DSoundVoiceOut),
1106 .oice_size_in = sizeof (DSoundVoiceIn)
1107};