mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
raop: Prefer ALAC encoding to raw PCM if supported by server
ALAC encoding is to be prefered simply because ALAC audio packet reverse- engineering and implementation is in better shape than raw PCM. Sending ALAC audio does not mean compressing audio and thus linking an external library to do so. ALAC packets has the ability to carry uncompressed PCM frames, and that's what is implemented at the time.
This commit is contained in:
parent
8022e56581
commit
094906b3f9
1 changed files with 4 additions and 1 deletions
|
|
@ -200,7 +200,10 @@ static void resolver_cb(
|
|||
* - 1 = ALAC,
|
||||
* - 2 = AAC,
|
||||
* - 3 = AAC ELD. */
|
||||
cn = pa_xstrdup("PCM");
|
||||
if (pa_str_in_list(value, ",", "1"))
|
||||
cn = pa_xstrdup("ALAC");
|
||||
else
|
||||
cn = pa_xstrdup("PCM");
|
||||
} else if (pa_streq(key, "md")) {
|
||||
/* Supported metadata types:
|
||||
* - 0 = text,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue