Commit Graph

111275 Commits

Author SHA1 Message Date
Robert O'Callahan
384eb67455 Bug 805254. Part 8: Consolidate audio sample processing code using templates over the format types. r=kinetik
Replace nsAudioStream::Format with an AUDIO_OUTPUT_FORMAT enum value so we
can use it as a template parameter.

Introduce AudioSampleTraits<AudioSampleFormat> to give us access to the C++ type
corresponding to an enum value.

Move SampleToFloat/FloatToSample to AudioSampleFormat.h.

Introduce ConvertAudioSamples and ConvertAudioSamplesWithScale functions
and use them from various places.

Moves AudioDataValue to AudioSampleFormat.h. The name isn't great, but it'll do.
2012-10-25 23:09:40 +13:00
Robert O'Callahan
a0d739c463 Bug 805254. Part 7: Move SampleFormat to mozilla::AudioSampleFormat in its own file. r=kinetik 2012-10-25 23:09:40 +13:00
Robert O'Callahan
272b330f88 Bug 805254. Part 6: Replace some #ifdefs with if statements. r=kinetik
This is largely obsoleted by part 8. Sorry.
2012-10-25 23:09:39 +13:00
Robert O'Callahan
996ea428df Bug 805254. Part 5: Remove format parameter from PAudio constructor. r=kinetik 2012-10-25 23:09:39 +13:00
Robert O'Callahan
11cca22e78 Bug 805254. Part 4: Remove FORMAT_U8 from nsAudioStream::SampleFormat. r=kinetik
We also give nsWaveReader its own separate format enum.
2012-10-25 23:09:39 +13:00
Robert O'Callahan
9daf75897d Bug 805254. Part 3: Remove SampleType. r=kinetik 2012-10-25 23:09:39 +13:00
Robert O'Callahan
6ebf581b9e Bug 805254. Part 2: Rename nsAudioStream::GetFormat() to Format(), make it static, and use it instead of the MOZ_AUDIO_DATA_FORMAT macro. r=kinetik
Part 8 mostly replaces this patch, but it's quite difficult to reorder the patches to avoid this one.
2012-10-25 23:09:38 +13:00
Robert O'Callahan
231bb156a9 Bug 805254. Part 1: Remove mFormat from nsAudioStream. r=kinetik 2012-10-25 23:09:38 +13:00
Alfred Kayser
807475654d Bug 804068 - set social sharebutton image via .src, plus css tweaks to ensure it is sized correctly. r=jaws 2012-10-24 13:46:05 +11:00
Mark Hammond
fae045d86c Bug 805725 - browser_frameworker test should hit mochi.test:8888 for websocket tests. r=me 2012-10-26 15:19:58 +11:00
Matthew Gregan
6f1a6ddb80 Bug 805352 - Make cubeb_stream_destroy errors non-fatal in AudioUnit backend. r=doublec 2012-10-26 17:09:12 +13:00
Matt Woodrow
68ac6cb0e7 Bug 800041 - Make nsDisplayWrapList set its own reference frame correctly, and sanity check during ComputeVisibilityForSublist. r=roc 2012-10-25 18:32:25 +13:00
Brian R. Bondy
4bc9400593 Bug 790496 - Make maintenance service errors stand out more. r=ehsan 2012-10-25 22:34:03 -04:00
Brian R. Bondy
7191586301 Bug 765598 - Remove newly created MozUpdater folders in tmp on post update. r=ehsan 2012-10-25 22:30:34 -04:00
Brian R. Bondy
9b3bd8fe95 Bug 801853. r=rstrong 2012-10-25 22:07:04 -04:00
Andrea Marchesini
317d788b96 Bug 804395 - Allow app:// protocol and XHR. r=sicking 2012-10-25 21:57:57 -04:00
Ryan VanderMeulen
f9f21d1079 Merge m-c to inbound. 2012-10-25 21:57:47 -04:00
Andrea Marchesini
b7890d8248 Bug 805282 - Add MailtoProtocolHandler.js, SmsProtocolHandler.js and TelProtocolHandler.js to package-manifest.in r=fabrice 2012-10-25 18:50:03 -07:00
Daniel Holbert
86007c1a13 Bug 805555: Mark nsXBLProtoImpl member-vars "cx" and "versionBefore" as DebugOnly. r=bz 2012-10-25 18:48:22 -07:00
Robert O'Callahan
72668f3816 Bug 801488. Part 2: Don't Redraw; DLBI will handle everything. r=mattwoodrow 2012-10-26 14:39:31 +13:00
Robert O'Callahan
32732ce56c Bug 801488. Don't flush notifications when dragging a XUL splitter. r=bzbarsky 2012-10-26 14:39:24 +13:00
Robert O'Callahan
9174df61e2 Bug 790854. Keep MediaStream alive until MediaStream::Destroy ends. r=jesup 2012-10-26 14:39:05 +13:00
Kyle Machulis
79b67fcf1d Bug 802288: Make BluetoothOppManager shutdown at xpcom-shutdown event; r=echou 2012-10-25 18:25:46 -07:00
Kyle Machulis
c037938471 Bug 804687: Remove sHfpCommandThread from BluetoothHfpManager; r=echou 2012-10-25 18:25:15 -07:00
Ryan VanderMeulen
4c180e35d1 Merge the last PGO-green inbound chnageset to m-c. 2012-10-25 21:14:50 -04:00
Nicholas Nethercote
fc116d5383 Bug 804891 - Reduce LIFO_ALLOC_PRIMARY_CHUNK_SIZE from 128 KiB to 32 KiB. r=wmccloskey.
--HG--
extra : rebase_source : 41cbe9a405e2febe84ce1db3bf1dba9a19f53748
2012-10-25 17:55:31 -07:00
Masayuki Nakano
6c9580559c Bug 805306 Get rid of nsIMEStateManager::OnTextStateBlur() and nsIMEStateManager::OnTextStateFocus() r=smaug 2012-10-26 09:49:13 +09:00
Randell Jesup
390ef93d23 Bug 802397: Work around JS engine bug 449811 to select correct mic/camera r=dolske 2012-10-25 20:14:47 -04:00
Randell Jesup
c69045b847 Bug 805596: Incorrect audio rates used for fake audio streams r=anant 2012-10-25 20:14:47 -04:00
Randell Jesup
c0385b6f1c Bug 805451: Remove lock (mostly) and ensure other singleton refs are MainThread r=derf 2012-10-25 20:14:47 -04:00
Ryan VanderMeulen
f6df03b1a0 Backout 589b6766b99a (bug 786146) due to test bustage on a CLOSED TREE. 2012-10-25 20:05:13 -04:00
Andrew Quartey
6eb0ddf707 Bug 792581 - part 22: Replace LL_ZERO and LL_Zero() macros with 0. r=ehsan 2012-10-25 19:25:59 -04:00
Andrew Quartey
a1996feccf Bug 792581 - part 21: Replace LL_F2L and LL_D2L macros. r=ehsan 2012-10-25 19:25:58 -04:00
Andrew Quartey
1d0db40554 Bug 792581 - part 20: Replace LL_UI2L macro with int64_t cast. r=ehsan 2012-10-25 19:25:57 -04:00
Nikhil Marathe
44ce273499 Bug 804174 - Inline IsCallerTrustedForWrite with IsCallerChrome. r=mccr8 2012-10-25 16:10:54 -07:00
Nikhil Marathe
5b8c5fd31a Bug 804174 - Inline IsCallerTrustedForRead with IsCallerChrome. r=mccr8 2012-10-25 16:10:53 -07:00
Nikhil Marathe
3a11b37824 Bug 804174 - Inline IsUniversalXPConnectCapable with nsContentUtils::IsCallerChrome. r=mccr8 2012-10-25 16:10:53 -07:00
Nikhil Marathe
814dbc2a57 Bug 804174 - Inline CallerHasUniversalXPConnect with IsCallerChrome. r=mccr8 2012-10-25 16:10:53 -07:00
Robert O'Callahan
54e64ff390 Backout 15c4d6334107 (bug 790854) for test failures 2012-10-26 12:08:38 +13:00
Brian Hackett
00d5367959 Eagerly generate a single copy of Ion stubs and wrappers, bug 786146. r=dvander 2012-10-25 15:37:17 -07:00
Mike Conley
9f8be84f96 Bug 790475 - Part 2: Regression test for the adjacent text node case. r=ehsan. 2012-10-25 18:32:22 -04:00
Mike Conley
441297b939 Bug 790475 - Part 1: Allow inline spellcheck to operate through adjacent text nodes. r=ehsan. 2012-10-25 18:32:12 -04:00
Robert O'Callahan
a7019f243f Bug 790854. Set mMainThreadDestroyed before the stream is destroyed. r=jesup
--HG--
extra : rebase_source : 6b1d2a64b9af082b02a207759f051cb6d7975e35
2012-10-26 11:07:59 +13:00
Daniel Holbert
88192d2c41 Bug 805456 - Remove useless check that an unsigned value is >= 0 to fix a build warning. r=masayuki 2012-10-25 17:43:25 -04:00
Dale Harvey
e04ce291eb Bug 800235 - Add .ogg to valid video file extensions. r=dougt 2012-10-25 17:43:25 -04:00
Jason Orendorff
8960a647d5 Bug 787703. r=terrence 2012-10-25 17:43:25 -04:00
Jan Horak
de4a6659f1 Bug 567377 - Support drag and drop for Linux. r=mak77 2012-10-25 17:43:24 -04:00
Ryan VanderMeulen
4ab0bcd6c5 Merge m-c to inbound. 2012-10-25 17:43:19 -04:00
Scott Johnson
f9e3245129 Bug 802311: Make max line box width adjustment API compute right edge of line boxes correctly to fix reflow-on-zoom issues. [r=dbaron] 2012-10-25 16:38:54 -05:00
Chris Lord
68028d1d1a Bug 805014 - Add fuzz for gradient-live tests on Android. r=jwatt
Progressive tiles have caused these tests to render slightly differently for
no obvious reason.
2012-10-25 22:11:37 +01:00