aboutsummaryrefslogtreecommitdiff
path: root/audio/alsaaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/alsaaudio.c')
-rw-r--r--audio/alsaaudio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index e079dba..862579a 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -786,8 +786,10 @@ static int alsa_run_in (HWVoiceIn *hw)
int add;
int len;
} bufs[2] = {
- { hw->wpos, 0 },
- { 0, 0 }
+ {.add = hw->wpos,
+ .len = 0},
+ {.add = 0,
+ .len = 0}
};
snd_pcm_sframes_t avail;
snd_pcm_uframes_t read_samples = 0;