Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: media/cast/test/utility/audio_utility.h

Issue 2101303004: Pass delay and timestamp to AudioSourceCallback::OnMoreData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix Mac CQ errors. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698