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..83b84e2b1a9c817c0ef89930cf6c3f8df61e27d5 100644 |
| --- a/media/audio/audio_parameters.h |
| +++ b/media/audio/audio_parameters.h |
| @@ -8,6 +8,13 @@ |
| #include "base/basictypes.h" |
| struct AudioParameters { |
| + // Compare is useful when AudioParameters is used as a key in |
|
scherkus (not reviewing)
2010/11/24 05:03:12
nit: this comment can fit on a single line
Sergey Ulanov
2010/11/24 19:13:51
Done.
|
| + // std::map. |
| + class Compare { |
| + 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. |