mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
core: Add extended stream API to support compressed formats
This is the beginning of work to support compressed formats natively in PulseAudio. This adds a pa_stream_new_extended() that takes a format structure, sends it to the server (=> protocol extension) and has the server negotiate with the appropropriate sink to figure out what format it should use. This is work in progress, and works only with PCM streams. Actual compressed format support in some sink needs to be implemented, and extensive testing is required. More details on how this is supposed to work is available at: http://pulseaudio.org/wiki/PassthroughSupport
This commit is contained in:
parent
47e0f91aa2
commit
0ac2cfce6d
25 changed files with 347 additions and 82 deletions
15
PROTOCOL
15
PROTOCOL
|
|
@ -213,3 +213,18 @@ Two new flags at the end of sink input introspection data:
|
|||
|
||||
bool has_volume
|
||||
bool volume_writable
|
||||
|
||||
## v21, implemented by >= 1.0
|
||||
|
||||
Changes for format negotiation in the extended API.
|
||||
|
||||
New fields PA_COMMAND_CREATE_PLAYBACK_STREAM:
|
||||
|
||||
uint8_t n_formats
|
||||
format_info format1
|
||||
...
|
||||
format_info formatn
|
||||
|
||||
One new field in reply from PA_COMMAND_CREATE_PLAYBACK_STREAM:
|
||||
|
||||
format_info format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue