Chromium Code Reviews| Index: media/audio/audio_parameters.h |
| diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h |
| index 9172d743066e0a93a8c4e95390c070f5e51d1b1e..6c522b5cdf969bcf6d602588941780146d1bacf9 100644 |
| --- a/media/audio/audio_parameters.h |
| +++ b/media/audio/audio_parameters.h |
| @@ -8,6 +8,13 @@ |
| #include "base/basictypes.h" |
| struct AudioParameters { |
| + // CompareAudioParams is useful when AudioParameters is used as a |
| + // key in std::map. |
| + class CompareAudioParams { |
|
scherkus (not reviewing)
2010/11/24 02:01:59
nit: considering this is declared inside AudioPara
Sergey Ulanov
2010/11/24 03:49:54
Done.
|
| + public: |
| + bool operator()(const AudioParameters& a, const AudioParameters& b) const; |
| + }; |
| + |
| enum Format { |
| AUDIO_PCM_LINEAR = 0, // PCM is 'raw' amplitude samples. |
| AUDIO_PCM_LOW_LATENCY, // Linear PCM, low latency requested. |