From 1a40d5e23577b955265fe12a2b7b5222ec2df0f2 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 11 Aug 2009 02:31:17 +0200 Subject: use C99 initializers for all audio/* Signed-off-by: Juan Quintela --- audio/dsoundaudio.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'audio/dsoundaudio.c') diff --git a/audio/dsoundaudio.c b/audio/dsoundaudio.c index aff0817..45c1dfd 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 { -- cgit v1.1