Index: media/audio/audio_device_thread.h |
diff --git a/media/audio/audio_device_thread.h b/media/audio/audio_device_thread.h |
index f3287ef39ccf86705642dc5439f7b13860737f1d..43cc160836a1e30598fa677d58560b62486d8d6d 100644 |
--- a/media/audio/audio_device_thread.h |
+++ b/media/audio/audio_device_thread.h |
@@ -42,7 +42,8 @@ class MEDIA_EXPORT AudioDeviceThread : public base::PlatformThread::Delegate { |
virtual void MapSharedMemory() = 0; |
// Called whenever we receive notifications about pending input data. |
- virtual void Process(uint32_t pending_data) = 0; |
+ virtual void Process(int64_t pending_data, |
chcunningham
2016/10/21 18:19:47
Can you use a TimeDelta in this signature (and cal
Mikhail
2016/10/24 19:50:24
The reason for the current naming is that AudioInp
|
+ base::TimeTicks data_timestamp) = 0; |
protected: |
virtual ~Callback(); |
@@ -75,6 +76,12 @@ class MEDIA_EXPORT AudioDeviceThread : public base::PlatformThread::Delegate { |
// synchronous process and the thread will stop before the method returns. |
~AudioDeviceThread() override; |
+ // Represents a data packet to be received via the socket. |
+ struct Packet { |
+ int64_t pending_data; |
chcunningham
2016/10/21 18:19:47
Can you name these like you do browser side?
del
Mikhail
2016/10/24 19:50:24
Same motivation as in the comment above.
|
+ int64_t data_timestamp_us; |
+ }; |
+ |
private: |
void ThreadMain() final; |