Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: content/renderer/media/render_audiosourceprovider.cc

Issue 10834033: Move AudioDevice and AudioInputDevice to media. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and fixed a few lint issues Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/render_audiosourceprovider.h ('k') | content/renderer/media/scoped_loop_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/render_audiosourceprovider.cc
===================================================================
--- content/renderer/media/render_audiosourceprovider.cc (revision 148738)
+++ content/renderer/media/render_audiosourceprovider.cc (working copy)
@@ -83,7 +83,7 @@
} else {
// Provide silence if the source is not running.
for (size_t i = 0; i < audio_data.size(); ++i)
- memset(audio_data[i], 0, sizeof(float) * number_of_frames);
+ memset(audio_data[i], 0, sizeof(audio_data[0]) * number_of_frames);
}
}
« no previous file with comments | « content/renderer/media/render_audiosourceprovider.h ('k') | content/renderer/media/scoped_loop_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698