Closed Bug 1300023 Opened 8 years ago Closed 8 years ago

Support audio 5.1 on Linux

Categories

(Core :: Audio/Video: cubeb, task, P2)

Unspecified
Linux
task

Tracking

()

RESOLVED FIXED

People

(Reporter: chunmin, Assigned: chunmin)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 3 obsolete files)

As title.
Assignee: nobody → cchang
Blocks: 1073786
Rank: 21
Priority: -- → P2
Attached file [WIP] Convert layout to channel map (obsolete) —
TO-DO: downmix/upmix in pulseAudio
Attached file [WIP] Multi-channel support on Linux (obsolete) —
Attachment #8818834 - Attachment is obsolete: true
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
Attached file Multi-channel support on Linux (obsolete) —
Attachment #8819262 - Attachment is obsolete: true
(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.
Hi kinetik, Could you review this patch? Thanks!
Attachment #8819751 - Attachment is obsolete: true
Attachment #8821421 - Flags: review?(kinetik)
Attachment #8821421 - Flags: review?(kinetik) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Type: defect → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: