Closed Bug 897895 Opened 12 years ago Closed 12 years ago

MediaRecorder - The recorded sound is incorrect when recording the mediaStream generated from AudioContext

Categories

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

defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla26
blocking-b2g koi+
Tracking Status
firefox26 --- verified

People

(Reporter: rlin, Assigned: shelly)

References

Details

(Whiteboard: [FT: Media Recording, Sprint 2])

Attachments

(1 file)

I found the recording sound is incorrect when use the AudioContext to generate an 1k tone. The audio sounds like zzzzzz, not like the original one. Test page is http://people.mozilla.com/~rlin/MediaRecorder.html 1. click getAudioContext, you will hear 1k tone from speaker. 2. start 3. stop 4. playbackfromMemoery, the sound is incorrect.
No longer depends on: MediaRecording
blocking-b2g: --- → koi+
Whiteboard: [FT: Media Recording, Sprint 2]
Assignee: nobody → slin
In the process of interleaving raw data to pcm buffer, the calculation of pcm buffer's offset is previously wrong. It just happened to be correct with audio source that has only one channel. This fix should correct the calculation.
Attachment #789993 - Flags: review?(roc)
Observe that AudioContext generates an audio source with two channels and sampling rate at 48K.
Blocks: 903595
No longer blocks: 903595
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Keywords: verifyme
QA Contact: jsmith
Marking verified per the dupe's testing.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Verified on Aurora 26.0a2 (buildID: 20131011004001).
Component: Video/Audio → Video/Audio: Recording
No longer blocks: MediaRecording
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: