From 6f13e28ba698a2b0145acbb926b79cd569a31f44 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Sun, 13 May 2018 22:07:22 +0200 Subject: First testable version. Mixing with volume and mute per audio role works. --- plugins/alsa/alsa-api-sndzones.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/alsa/alsa-api-sndzones.c') diff --git a/plugins/alsa/alsa-api-sndzones.c b/plugins/alsa/alsa-api-sndzones.c index 11d77c2..7ca61ad 100644 --- a/plugins/alsa/alsa-api-sndzones.c +++ b/plugins/alsa/alsa-api-sndzones.c @@ -128,12 +128,11 @@ CTLP_LUA2C(snd_zones, source, argsJ, responseJ) { // instantiate one route PCM per zone with multi plugin as slave for (int idx = 0; sndZone[idx].uid != NULL; idx++) { - Softmixer->zonePcms[idx] = AlsaCreateRoute(source, &sndZone[idx]); + Softmixer->zonePcms[idx] = AlsaCreateRoute(source, &sndZone[idx], 0); if (!Softmixer->zonePcms[idx]) { AFB_ApiNotice(source->api, "L2C:sndzones fail to create route zone=%s", sndZone[idx].uid); goto OnErrorExit; } - snd_pcm_close(Softmixer->zonePcms[idx]->handle); } // do not need this handle anymore -- cgit 1.2.3-korg