Closed Bug 1240420 Opened 8 years ago Closed 8 years ago

Move checks of mismatched sample rate or channel numbers to AudioStream

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(2 files)

https://hg.mozilla.org/mozilla-central/file/5644818538de2413cce52551e32b025e6c7e352e/dom/media/mediasink/DecodedAudioDataSink.cpp#l250

There are several benefits of doing this:
1. save the memory allocation in SilentChunk.
2. have a better chance for AudioStream::Downmix() to succeed when channel number is smaller than 8.
Comment on attachment 8710409 [details]
MozReview Request: Bug 1240420. Part 1 - move checks of mismatched sample rate or channel numbers to AudioStream. r=kinetik.

https://reviewboard.mozilla.org/r/31745/#review28549
Attachment #8710409 - Flags: review?(kinetik) → review+
Comment on attachment 8710410 [details]
MozReview Request: Bug 1240420. Part 2 - fix warnings of signed/unsigned comparison. r=kinetik.

https://reviewboard.mozilla.org/r/31747/#review28551
Attachment #8710410 - Flags: review?(kinetik) → review+
Thanks for the review!
https://hg.mozilla.org/mozilla-central/rev/52b05e612df9
https://hg.mozilla.org/mozilla-central/rev/632c8912c742
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Depends on: 1245542
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: