aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output/alsa_plugin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c
index a7f37f139..e5ac61088 100644
--- a/src/output/alsa_plugin.c
+++ b/src/output/alsa_plugin.c
@@ -28,6 +28,10 @@
static const char default_device[] = "default";
+enum {
+ MPD_ALSA_BUFFER_TIME_US = 500000,
+};
+
#define MPD_ALSA_RETRY_NR 5
typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer,
@@ -62,7 +66,7 @@ static AlsaData *newAlsaData(void)
ret->pcmHandle = NULL;
ret->writei = snd_pcm_writei;
ret->useMmap = 0;
- ret->buffer_time = 0;
+ ret->buffer_time = MPD_ALSA_BUFFER_TIME_US;
ret->period_time = 0;
return ret;