diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2018-05-13 02:12:25 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2018-05-13 02:12:25 +0200 |
commit | 0eb15da6365910ba3f290e3254719fd412ae0155 (patch) | |
tree | 5dc1f6027573fe21b3519b2dbafd2b45bb151c73 /plugins/alsa/alsa-api-sndcards.c | |
parent | ca0965cae3ad129e495fd4615ebeb7c11b413a2b (diff) |
First version muxing multiple audio streams.
Diffstat (limited to 'plugins/alsa/alsa-api-sndcards.c')
-rw-r--r-- | plugins/alsa/alsa-api-sndcards.c | 4 |
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; |