Index: webrtc/test/fake_audio_device.h |
diff --git a/webrtc/test/fake_audio_device.h b/webrtc/test/fake_audio_device.h |
index ce480c1554dac7038d1b3c6cedb57dd1b9649732..180abf6c924c7a2e57e5be17a9cd9dc138218049 100644 |
--- a/webrtc/test/fake_audio_device.h |
+++ b/webrtc/test/fake_audio_device.h |
@@ -16,6 +16,7 @@ |
#include "webrtc/base/platform_thread.h" |
#include "webrtc/base/scoped_ptr.h" |
#include "webrtc/modules/audio_device/include/fake_audio_device.h" |
+#include "webrtc/test/drifting_clock.h" |
#include "webrtc/typedefs.h" |
namespace webrtc { |
@@ -29,7 +30,7 @@ namespace test { |
class FakeAudioDevice : public FakeAudioDeviceModule { |
public: |
- FakeAudioDevice(Clock* clock, const std::string& filename); |
+ FakeAudioDevice(Clock* clock, const std::string& filename, float speed); |
virtual ~FakeAudioDevice(); |
@@ -54,9 +55,10 @@ class FakeAudioDevice : public FakeAudioDeviceModule { |
bool capturing_; |
int8_t captured_audio_[kBufferSizeBytes]; |
int8_t playout_buffer_[kBufferSizeBytes]; |
+ const float speed_; |
int64_t last_playout_ms_; |
- Clock* clock_; |
+ DriftingClock clock_; |
rtc::scoped_ptr<EventTimerWrapper> tick_; |
rtc::CriticalSection lock_; |
rtc::PlatformThread thread_; |