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

Side by Side Diff: media/base/audio_parameters.cc

Issue 2738403002: AudioParameters::UnavailableDeviceParameters buffer size 100 ms -> 10 ms (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/audio_parameters.h" 5 #include "media/base/audio_parameters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/base/limits.h" 8 #include "media/base/limits.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 bool AudioParameters::IsBitstreamFormat() const { 100 bool AudioParameters::IsBitstreamFormat() const {
101 return format_ == AUDIO_BITSTREAM_AC3 || format_ == AUDIO_BITSTREAM_EAC3; 101 return format_ == AUDIO_BITSTREAM_AC3 || format_ == AUDIO_BITSTREAM_EAC3;
102 } 102 }
103 103
104 // static 104 // static
105 AudioParameters AudioParameters::UnavailableDeviceParams() { 105 AudioParameters AudioParameters::UnavailableDeviceParams() {
106 return media::AudioParameters( 106 return media::AudioParameters(
107 media::AudioParameters::AUDIO_FAKE, media::CHANNEL_LAYOUT_STEREO, 107 media::AudioParameters::AUDIO_FAKE, media::CHANNEL_LAYOUT_STEREO,
108 media::AudioParameters::kAudioCDSampleRate, 16, 108 media::AudioParameters::kAudioCDSampleRate, 16,
109 media::AudioParameters::kAudioCDSampleRate / 10); 109 media::AudioParameters::kAudioCDSampleRate / 100);
tommi (sloooow) - chröme 2017/03/10 12:25:36 Since there was an issue with this, can you add a
110 } 110 }
111 111
112 } // namespace media 112 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698