Closed
Bug 1262746
Opened 9 years ago
Closed 9 years ago
Add downmix capabilities to AudioConverter
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: jya, Assigned: jya)
References
Details
Attachments
(3 files)
This is to track the task of adding dowmixing capabilities to the downmixer.
Assignee | ||
Comment 1•9 years ago
|
||
This is using the same downmixer algorithm as found in the ogg reader.
Review commit: https://reviewboard.mozilla.org/r/45195/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/45195/
Attachment #8739327 -
Flags: review?(giles)
Attachment #8739328 -
Flags: review?(jwwang)
Attachment #8739329 -
Flags: review?(giles)
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/45197/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/45197/
Assignee | ||
Comment 3•9 years ago
|
||
Functionality is now provided through AudioConverter class.
Review commit: https://reviewboard.mozilla.org/r/45199/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/45199/
Comment 4•9 years ago
|
||
Comment on attachment 8739328 [details]
MozReview Request: Bug 1262746: P2. Use AudioConvert in AudioStream to downmix samples. r?jwwang
https://reviewboard.mozilla.org/r/45197/#review41707
::: dom/media/AudioStream.cpp:358
(Diff revision 1)
> params.format = ToCubebFormat<AUDIO_OUTPUT_FORMAT>::value;
> mAudioClock.Init();
>
> + mInConfig = MakeUnique<AudioConfig>(mChannels, mInRate);
> + mOutConfig = MakeUnique<AudioConfig>(mOutChannels, mOutRate);
> + mAudioConverter = MakeUnique<AudioConverter>(*mInConfig.get(), *mOutConfig.get());
You can say |MakeUnique<>(*mInConfig, *mOutConfig)|. UniquePtr has operation*.
Attachment #8739328 -
Flags: review?(jwwang) → review+
Updated•9 years ago
|
Attachment #8739327 -
Flags: review?(giles) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8739327 [details]
MozReview Request: Bug 1262746: P1. Add downmixing capabilities to AudioConverter. r?rillian
https://reviewboard.mozilla.org/r/45195/#review42085
Sorry it took me so long to look at this. I didn't check the coefficients again. I assume they're cut-and-pasted from the updates in the earlier patches.
Updated•9 years ago
|
Attachment #8739329 -
Flags: review?(giles) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8739329 [details]
MozReview Request: Bug 1262746: P3. Remove DownmixAudioToStereo method. r?rillian
https://reviewboard.mozilla.org/r/45199/#review42087
...other times I just forget to hit the three-click publish button sequence.
If you export the clip function, you can remove MOZ_CLIP_TO_15() from VideoUtils.h and replace the other calls (OggReader, OpusDecoder) with AudioConverter::clipTo15().
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8739327 [details]
MozReview Request: Bug 1262746: P1. Add downmixing capabilities to AudioConverter. r?rillian
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/45195/diff/1-2/
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8739328 [details]
MozReview Request: Bug 1262746: P2. Use AudioConvert in AudioStream to downmix samples. r?jwwang
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/45197/diff/1-2/
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8739329 [details]
MozReview Request: Bug 1262746: P3. Remove DownmixAudioToStereo method. r?rillian
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/45199/diff/1-2/
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b77cdb6c0b6c
https://hg.mozilla.org/mozilla-central/rev/5b3a0fdc1e61
https://hg.mozilla.org/mozilla-central/rev/3955e76756ce
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in
before you can comment on or make changes to this bug.
Description
•