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

Unified Diff: media/audio/win/wavein_input_win.cc

Issue 4661001: Simplified AudioOutputStream interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month 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 | « media/audio/win/wavein_input_win.h ('k') | media/audio/win/waveout_output_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/wavein_input_win.cc
diff --git a/media/audio/win/wavein_input_win.cc b/media/audio/win/wavein_input_win.cc
index b328dcd58afec0acde4711fb98183864dafcb80e..c02fd521976f754f5b9d7e97b8ca6b2ad86439ee 100644
--- a/media/audio/win/wavein_input_win.cc
+++ b/media/audio/win/wavein_input_win.cc
@@ -26,7 +26,7 @@ WAVEHDR* GetNextBuffer(WAVEHDR* current) {
PCMWaveInAudioInputStream::PCMWaveInAudioInputStream(
AudioManagerWin* manager, AudioParameters params, int num_buffers,
- uint32 samples_per_packet, UINT device_id)
+ UINT device_id)
: state_(kStateEmpty),
manager_(manager),
device_id_(device_id),
@@ -42,7 +42,7 @@ PCMWaveInAudioInputStream::PCMWaveInAudioInputStream(
format_.cbSize = 0;
format_.nBlockAlign = (format_.nChannels * format_.wBitsPerSample) / 8;
format_.nAvgBytesPerSec = format_.nBlockAlign * format_.nSamplesPerSec;
- buffer_size_ = samples_per_packet * format_.nBlockAlign;
+ buffer_size_ = params.samples_per_packet * format_.nBlockAlign;
// If we don't have a packet size we use 100ms.
if (!buffer_size_)
buffer_size_ = format_.nAvgBytesPerSec / 10;
« no previous file with comments | « media/audio/win/wavein_input_win.h ('k') | media/audio/win/waveout_output_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698