mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
module-rtp-sap: add notices about different channelmap formats used by different hw
This commit is contained in:
parent
873e6119b8
commit
c75f6219dc
1 changed files with 3 additions and 1 deletions
|
|
@ -550,6 +550,7 @@ static int send_sap(struct impl *impl, struct session *sess, bool bye)
|
||||||
|
|
||||||
if (sdp->channels) {
|
if (sdp->channels) {
|
||||||
if (sdp->channelmap[0] != 0) {
|
if (sdp->channelmap[0] != 0) {
|
||||||
|
// Produce Audinate format channel record. It's recognized by RAVENNA
|
||||||
spa_strbuf_append(&buf,
|
spa_strbuf_append(&buf,
|
||||||
"i=%d channels: %s\n", sdp->channels,
|
"i=%d channels: %s\n", sdp->channels,
|
||||||
sdp->channelmap);
|
sdp->channelmap);
|
||||||
|
|
@ -1023,7 +1024,8 @@ static int parse_sdp_m(struct impl *impl, char *c, struct sdp_info *info)
|
||||||
/* some AES67 devices have channelmap encoded in i=*
|
/* some AES67 devices have channelmap encoded in i=*
|
||||||
* if `i` record is found, it matches the template
|
* if `i` record is found, it matches the template
|
||||||
* and channel count matches, name the channels respectively
|
* and channel count matches, name the channels respectively
|
||||||
* `i=2 channels: 01, 08` is the format */
|
* `i=2 channels: 01, 08` is the format
|
||||||
|
* This is Audinate format. TODO: parse RAVENNA `i=CH1,CH2,CH3` format */
|
||||||
static int parse_sdp_i(struct impl *impl, char *c, struct sdp_info *info)
|
static int parse_sdp_i(struct impl *impl, char *c, struct sdp_info *info)
|
||||||
{
|
{
|
||||||
if (!strstr(c, " channels: ")) {
|
if (!strstr(c, " channels: ")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue