OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CAST_TEST_UTILITY_AUDIO_UTILITY_H_ | 5 #ifndef MEDIA_CAST_TEST_UTILITY_AUDIO_UTILITY_H_ |
6 #define MEDIA_CAST_TEST_UTILITY_AUDIO_UTILITY_H_ | 6 #define MEDIA_CAST_TEST_UTILITY_AUDIO_UTILITY_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include "base/macros.h" | 11 #include "base/macros.h" |
9 #include "media/audio/simple_sources.h" | 12 #include "media/audio/simple_sources.h" |
10 | 13 |
11 namespace base { | 14 namespace base { |
12 class TimeDelta; | 15 class TimeDelta; |
13 } | 16 } |
14 | 17 |
15 namespace media { | 18 namespace media { |
16 class AudioBus; | 19 class AudioBus; |
17 } | 20 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 float* samples); | 77 float* samples); |
75 | 78 |
76 // Decode a timestamp encoded with EncodeTimestamp. Returns true if a | 79 // Decode a timestamp encoded with EncodeTimestamp. Returns true if a |
77 // timestamp was found in |samples|. | 80 // timestamp was found in |samples|. |
78 bool DecodeTimestamp(const float* samples, size_t length, uint16_t* timestamp); | 81 bool DecodeTimestamp(const float* samples, size_t length, uint16_t* timestamp); |
79 | 82 |
80 } // namespace cast | 83 } // namespace cast |
81 } // namespace media | 84 } // namespace media |
82 | 85 |
83 #endif // MEDIA_CAST_TEST_UTILITY_AUDIO_UTILITY_H_ | 86 #endif // MEDIA_CAST_TEST_UTILITY_AUDIO_UTILITY_H_ |
OLD | NEW |