diff options
Diffstat (limited to '')
-rw-r--r-- | src/output/alsa_plugin.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c index 0dc357ff5..b3520191e 100644 --- a/src/output/alsa_plugin.c +++ b/src/output/alsa_plugin.c @@ -90,16 +90,12 @@ static void freeAlsaData(AlsaData * ad) static void alsa_configure(AlsaData *ad, struct config_param *param) { - struct block_param *bp; - ad->device = config_dup_block_string(param, "device", NULL); ad->useMmap = config_get_block_bool(param, "use_mmap", false); - if ((bp = getBlockParam(param, "buffer_time"))) - ad->buffer_time = atoi(bp->value); - if ((bp = getBlockParam(param, "period_time"))) - ad->period_time = atoi(bp->value); + ad->buffer_time = config_get_block_unsigned(param, "buffer_time", 0); + ad->period_time = config_get_block_unsigned(param, "period_time", 0); #ifdef SND_PCM_NO_AUTO_RESAMPLE if (!config_get_block_bool(param, "auto_resample", true)) |