| Index: media/audio/fake_audio_input_stream.cc
|
| diff --git a/media/audio/fake_audio_input_stream.cc b/media/audio/fake_audio_input_stream.cc
|
| index f1284f1acb3f412c1c805092c723d348557020a3..0e4bb61e379addbd7b9cf7477712d47333959517 100644
|
| --- a/media/audio/fake_audio_input_stream.cc
|
| +++ b/media/audio/fake_audio_input_stream.cc
|
| @@ -20,11 +20,11 @@ FakeAudioInputStream::FakeAudioInputStream(AudioManagerBase* manager,
|
| const AudioParameters& params)
|
| : audio_manager_(manager),
|
| callback_(NULL),
|
| - buffer_size_((params.channels * params.bits_per_sample *
|
| - params.samples_per_packet) / 8),
|
| + buffer_size_((params.channels() * params.bits_per_sample() *
|
| + params.frames_per_buffer()) / 8),
|
| thread_("FakeAudioRecordingThread"),
|
| callback_interval_(base::TimeDelta::FromMilliseconds(
|
| - (params.samples_per_packet * 1000) / params.sample_rate)) {
|
| + (params.frames_per_buffer() * 1000) / params.sample_rate())) {
|
| }
|
|
|
| FakeAudioInputStream::~FakeAudioInputStream() {}
|
|
|