OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UTIL_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_UTIL_H_ |
6 #define MEDIA_AUDIO_AUDIO_UTIL_H_ | 6 #define MEDIA_AUDIO_AUDIO_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 memcpy(aac, b, sizeof(aac)); | 84 memcpy(aac, b, sizeof(aac)); |
85 b[0] = aac[1]; // L | 85 b[0] = aac[1]; // L |
86 b[1] = aac[2]; // R | 86 b[1] = aac[2]; // R |
87 b[2] = aac[0]; // C | 87 b[2] = aac[0]; // C |
88 b[3] = aac[5]; // LFE | 88 b[3] = aac[5]; // LFE |
89 b[4] = aac[3]; // Ls | 89 b[4] = aac[3]; // Ls |
90 b[5] = aac[4]; // Rs | 90 b[5] = aac[4]; // Rs |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
| 94 // Returns the default audio hardware sample-rate. |
| 95 double GetAudioHardwareSampleRate(); |
| 96 |
94 } // namespace media | 97 } // namespace media |
95 | 98 |
96 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ | 99 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ |
OLD | NEW |