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

Side by Side Diff: media/base/limits.h

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Comments. Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « media/base/audio_bus.h ('k') | ppapi/DEPS » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Contains limit definition constants for the media subsystem. 5 // Contains limit definition constants for the media subsystem.
6 6
7 #ifndef MEDIA_BASE_LIMITS_H_ 7 #ifndef MEDIA_BASE_LIMITS_H_
8 #define MEDIA_BASE_LIMITS_H_ 8 #define MEDIA_BASE_LIMITS_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 // - AAC files are limited to 96 kHz. 29 // - AAC files are limited to 96 kHz.
30 // - MP3 files are limited to 48 kHz. 30 // - MP3 files are limited to 48 kHz.
31 // - Vorbis used to be limited to 96 KHz, but no longer has that 31 // - Vorbis used to be limited to 96 KHz, but no longer has that
32 // restriction. 32 // restriction.
33 // - Most PC audio hardware is limited to 192 KHz. 33 // - Most PC audio hardware is limited to 192 KHz.
34 kMaxSampleRate = 192000, 34 kMaxSampleRate = 192000,
35 kMinSampleRate = 8000, 35 kMinSampleRate = 8000,
36 kMaxChannels = 32, 36 kMaxChannels = 32,
37 kMaxBitsPerSample = 64, 37 kMaxBitsPerSample = 64,
38 kMaxSamplesPerPacket = kMaxSampleRate, 38 kMaxSamplesPerPacket = kMaxSampleRate,
39 kMaxPacketSizeInBytes =
40 (kMaxBitsPerSample / 8) * kMaxChannels * kMaxSamplesPerPacket,
39 }; 41 };
40 42
41 } // namespace limits 43 } // namespace limits
42 44
43 } // namespace media 45 } // namespace media
44 46
45 #endif // MEDIA_BASE_LIMITS_H_ 47 #endif // MEDIA_BASE_LIMITS_H_
OLDNEW
« no previous file with comments | « media/base/audio_bus.h ('k') | ppapi/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698