summaryrefslogtreecommitdiff
path: root/audio/dsoundaudio.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-11 02:31:17 +0200
committermalc <av1474@comtv.ru>2009-08-11 20:51:24 +0400
commita0d5d7f5123b5a76855c09c59a32201c93a47705 (patch)
treea5d043000b861d524237dcb6d581ee1026f99f86 /audio/dsoundaudio.c
parent85b1f3464c326fb5300d1cbc96af56dbfd2a4a35 (diff)
downloadqemu-a0d5d7f5123b5a76855c09c59a32201c93a47705.tar.gz
qemu-a0d5d7f5123b5a76855c09c59a32201c93a47705.tar.bz2
qemu-a0d5d7f5123b5a76855c09c59a32201c93a47705.zip
use C99 initializers for all audio/*
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'audio/dsoundaudio.c')
-rw-r--r--audio/dsoundaudio.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/audio/dsoundaudio.c b/audio/dsoundaudio.c
index aff08177f8..45c1dfd202 100644
--- a/audio/dsoundaudio.c
+++ b/audio/dsoundaudio.c
@@ -49,18 +49,16 @@ static struct {
struct audsettings settings;
int latency_millis;
} conf = {
- 1,
- 1,
- 1,
- 0,
- 16384,
- 16384,
- {
- 44100,
- 2,
- AUD_FMT_S16
- },
- 10
+ .lock_retries = 1,
+ .restore_retries = 1,
+ .getstatus_retries = 1,
+ .set_primary = 0,
+ .bufsize_in = 16384,
+ .bufsize_out = 16384,
+ .settings.freq = 44100,
+ .settings.nchannels = 2,
+ .settings.fmt = AUD_FMT_S16
+ .latency_millis = 10
};
typedef struct {