aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-sndcards.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2018-05-13 02:12:25 +0200
committerFulup Ar Foll <fulup@iot.bzh>2018-05-13 02:12:25 +0200
commit0eb15da6365910ba3f290e3254719fd412ae0155 (patch)
tree5dc1f6027573fe21b3519b2dbafd2b45bb151c73 /plugins/alsa/alsa-api-sndcards.c
parentca0965cae3ad129e495fd4615ebeb7c11b413a2b (diff)
First version muxing multiple audio streams.
Diffstat (limited to 'plugins/alsa/alsa-api-sndcards.c')
-rw-r--r--plugins/alsa/alsa-api-sndcards.c4
1 files changed, 3 insertions, 1 deletions
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;