mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
module-rtp/stream: Add support for RAOP
This commit is contained in:
parent
8704aaa044
commit
cbac8c9040
1 changed files with 7 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ static const struct format_info audio_format_info[] = {
|
|||
{ SPA_MEDIA_SUBTYPE_raw, SPA_AUDIO_FORMAT_ALAW, 1, "PCMA", "audio" },
|
||||
{ SPA_MEDIA_SUBTYPE_raw, SPA_AUDIO_FORMAT_ULAW, 1, "PCMU", "audio" },
|
||||
{ SPA_MEDIA_SUBTYPE_raw, SPA_AUDIO_FORMAT_S16_BE, 2, "L16", "audio" },
|
||||
{ SPA_MEDIA_SUBTYPE_raw, SPA_AUDIO_FORMAT_S16_LE, 2, "L16", "audio" },
|
||||
{ SPA_MEDIA_SUBTYPE_raw, SPA_AUDIO_FORMAT_S24_BE, 3, "L24", "audio" },
|
||||
{ SPA_MEDIA_SUBTYPE_control, 0, 1, "rtp-midi", "audio" },
|
||||
{ SPA_MEDIA_SUBTYPE_opus, 0, 4, "opus", "audio" },
|
||||
|
|
@ -298,6 +299,12 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
|
|||
impl->info.media_subtype = SPA_MEDIA_SUBTYPE_raw;
|
||||
impl->payload = 127;
|
||||
}
|
||||
else if (spa_streq(str, "raop")) {
|
||||
impl->info.media_type = SPA_MEDIA_TYPE_audio;
|
||||
impl->info.media_subtype = SPA_MEDIA_SUBTYPE_raw;
|
||||
impl->payload = 0x60;
|
||||
impl->marker_on_first = 1;
|
||||
}
|
||||
else if (spa_streq(str, "midi")) {
|
||||
impl->info.media_type = SPA_MEDIA_TYPE_application;
|
||||
impl->info.media_subtype = SPA_MEDIA_SUBTYPE_control;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue