Closed
Bug 1300023
Opened 8 years ago
Closed 8 years ago
Support audio 5.1 on Linux
Categories
(Core :: Audio/Video: cubeb, task, P2)
Tracking
()
RESOLVED
FIXED
People
(Reporter: chunmin, Assigned: chunmin)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 3 obsolete files)
As title.
Updated•8 years ago
|
Rank: 21
Priority: -- → P2
Assignee | ||
Comment 2•8 years ago
|
||
TO-DO: downmix/upmix in pulseAudio
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8818834 -
Attachment is obsolete: true
Assignee | ||
Comment 4•8 years ago
|
||
The mixing mechanism will be added into cubeb after implementing multiple channel support(bug 1318628).
However, PulseAudio, which is the underlying audio library for cubeb linux, already has a mixing mechanism[0]. Thus, we could set a mixing policy to combine our own mixing module with PulseAudio's mixing mechanism.
It will be clearer about the mixing policy after investigating the mixing supports on more backends.
[0] https://github.com/ChunMinChang/pulseaudio/blob/1d5dfccbb2b72abca6989a1c85b92e3e6e23bded/src/pulsecore/resampler.c#L841-L900
Assignee | ||
Comment 5•8 years ago
|
||
Attachment #8819262 -
Attachment is obsolete: true
Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Chun-Min Chang[:chunmin] from comment #4)
> PulseAudio already has a mixing mechanism[0].
> [0] https://github.com/ChunMinChang/pulseaudio/blob/1d5dfccbb2b72abca6989a1c85b92e3e6e23bded/src/pulsecore/resampler.c#L841-L900
If we want to downmix 5.1 to stereo when audio file with 3F2-LFE layout with 6 channels, we need to hook the pulseaudio to set channels and layout to 2 and stereo. And then we need to downmix the audio buffer before passing them to the |pa_stream_write| like [0].
[0] https://github.com/ChunMinChang/cubeb/commit/939ad9fb5cb7c11fa0a17d8cd4b3a18efa9fc519
I think this is too hacky. The downmix behaviour is a minor feature, so I think we could open a follow-up bug to discuss this and land the basic support for multi-channel first.
Assignee | ||
Comment 7•8 years ago
|
||
Hi kinetik,
Could you review this patch? Thanks!
Attachment #8819751 -
Attachment is obsolete: true
Attachment #8821421 -
Flags: review?(kinetik)
Updated•8 years ago
|
Attachment #8821421 -
Flags: review?(kinetik) → review+
Assignee | ||
Comment 8•8 years ago
|
||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Type: defect → task
You need to log in
before you can comment on or make changes to this bug.
Description
•