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

Side by Side Diff: media/audio/audio_parameters.h

Issue 11298006: Browser-wide audio mirroring for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last nit Created 8 years 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/audio/audio_manager_base.cc ('k') | media/audio/virtual_audio_input_stream.h » ('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) 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 #ifndef MEDIA_AUDIO_AUDIO_PARAMETERS_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_PARAMETERS_H_
6 #define MEDIA_AUDIO_AUDIO_PARAMETERS_H_ 6 #define MEDIA_AUDIO_AUDIO_PARAMETERS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/base/channel_layout.h" 9 #include "media/base/channel_layout.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 12 matching lines...) Expand all
23 AudioInputBufferParameters params; 23 AudioInputBufferParameters params;
24 int8 audio[1]; 24 int8 audio[1];
25 }; 25 };
26 26
27 class MEDIA_EXPORT AudioParameters { 27 class MEDIA_EXPORT AudioParameters {
28 public: 28 public:
29 enum Format { 29 enum Format {
30 AUDIO_PCM_LINEAR = 0, // PCM is 'raw' amplitude samples. 30 AUDIO_PCM_LINEAR = 0, // PCM is 'raw' amplitude samples.
31 AUDIO_PCM_LOW_LATENCY, // Linear PCM, low latency requested. 31 AUDIO_PCM_LOW_LATENCY, // Linear PCM, low latency requested.
32 AUDIO_FAKE, // Creates a fake AudioOutputStream object. 32 AUDIO_FAKE, // Creates a fake AudioOutputStream object.
33 AUDIO_VIRTUAL, // Creates a VirtualAudioInputStream object.
34 // Applies to input streams only.
33 AUDIO_LAST_FORMAT // Only used for validation of format. 35 AUDIO_LAST_FORMAT // Only used for validation of format.
34 }; 36 };
35 37
36 enum { 38 enum {
37 // Telephone quality sample rate, mostly for speech-only audio. 39 // Telephone quality sample rate, mostly for speech-only audio.
38 kTelephoneSampleRate = 8000, 40 kTelephoneSampleRate = 8000,
39 // CD sampling rate is 44.1 KHz or conveniently 2x2x3x3x5x5x7x7. 41 // CD sampling rate is 44.1 KHz or conveniently 2x2x3x3x5x5x7x7.
40 kAudioCDSampleRate = 44100, 42 kAudioCDSampleRate = 44100,
41 }; 43 };
42 44
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 if (a.sample_rate() != b.sample_rate()) 90 if (a.sample_rate() != b.sample_rate())
89 return a.sample_rate() < b.sample_rate(); 91 return a.sample_rate() < b.sample_rate();
90 if (a.bits_per_sample() != b.bits_per_sample()) 92 if (a.bits_per_sample() != b.bits_per_sample())
91 return a.bits_per_sample() < b.bits_per_sample(); 93 return a.bits_per_sample() < b.bits_per_sample();
92 return a.frames_per_buffer() < b.frames_per_buffer(); 94 return a.frames_per_buffer() < b.frames_per_buffer();
93 } 95 }
94 96
95 } // namespace media 97 } // namespace media
96 98
97 #endif // MEDIA_AUDIO_AUDIO_PARAMETERS_H_ 99 #endif // MEDIA_AUDIO_AUDIO_PARAMETERS_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager_base.cc ('k') | media/audio/virtual_audio_input_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698