From 0eb15da6365910ba3f290e3254719fd412ae0155 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Sun, 13 May 2018 02:12:25 +0200 Subject: First version muxing multiple audio streams. --- plugins/alsa/alsa-api-sndcards.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/alsa/alsa-api-sndcards.c') diff --git a/plugins/alsa/alsa-api-sndcards.c b/plugins/alsa/alsa-api-sndcards.c index d48abd8..e98a294 100644 --- a/plugins/alsa/alsa-api-sndcards.c +++ b/plugins/alsa/alsa-api-sndcards.c @@ -75,7 +75,9 @@ STATIC int ProcessOneSndCard(CtlSourceT *source, json_object *sndcardJ, AlsaPcmI } // protect each sndcard with a dmix plugin to enable audio-stream mixing - AlsaPcmInfoT *dmixPcm= AlsaCreateDmix(source, snd->uid, snd); + char dmixUid[100]; + snprintf(dmixUid, sizeof(dmixUid),"Dmix-%s", snd->uid); + AlsaPcmInfoT *dmixPcm= AlsaCreateDmix(source, dmixUid, snd); if (!dmixPcm) { AFB_ApiError(source->api, "ProcessOneSndCard: sndcard=%s fail to attach dmix plugin", snd->uid); goto OnErrorExit; -- cgit 1.2.3-korg