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