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

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

Issue 7572040: Enable media.dll / libmedia.so. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/audio/audio_output_proxy.h ('k') | media/audio/audio_util.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) 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 #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/audio_decoder_config.h" 9 #include "media/base/audio_decoder_config.h"
10 #include "media/base/media_export.h"
10 11
11 struct AudioParameters { 12 struct MEDIA_EXPORT AudioParameters {
12 // Compare is useful when AudioParameters is used as a key in std::map. 13 // Compare is useful when AudioParameters is used as a key in std::map.
13 class Compare { 14 class MEDIA_EXPORT Compare {
14 public: 15 public:
15 bool operator()(const AudioParameters& a, const AudioParameters& b) const; 16 bool operator()(const AudioParameters& a, const AudioParameters& b) const;
16 }; 17 };
17 18
18 enum Format { 19 enum Format {
19 AUDIO_PCM_LINEAR = 0, // PCM is 'raw' amplitude samples. 20 AUDIO_PCM_LINEAR = 0, // PCM is 'raw' amplitude samples.
20 AUDIO_PCM_LOW_LATENCY, // Linear PCM, low latency requested. 21 AUDIO_PCM_LOW_LATENCY, // Linear PCM, low latency requested.
21 AUDIO_MOCK, // Creates a dummy AudioOutputStream object. 22 AUDIO_MOCK, // Creates a dummy AudioOutputStream object.
22 AUDIO_LAST_FORMAT // Only used for validation of format. 23 AUDIO_LAST_FORMAT // Only used for validation of format.
23 }; 24 };
(...skipping 26 matching lines...) Expand all
50 ChannelLayout channel_layout; // Order of surround sound channels. 51 ChannelLayout channel_layout; // Order of surround sound channels.
51 int sample_rate; // Sampling frequency/rate. 52 int sample_rate; // Sampling frequency/rate.
52 int bits_per_sample; // Number of bits per sample. 53 int bits_per_sample; // Number of bits per sample.
53 int samples_per_packet; // Size of a packet in frames. 54 int samples_per_packet; // Size of a packet in frames.
54 55
55 int channels; // Number of channels. Value set based on 56 int channels; // Number of channels. Value set based on
56 // |channel_layout|. 57 // |channel_layout|.
57 }; 58 };
58 59
59 #endif // MEDIA_AUDIO_AUDIO_PARAMETERS_H_ 60 #endif // MEDIA_AUDIO_AUDIO_PARAMETERS_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_proxy.h ('k') | media/audio/audio_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698