diff options
author | xians@webrtc.org <xians@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-02-02 15:30:20 +0000 |
---|---|---|
committer | xians@webrtc.org <xians@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-02-02 15:30:20 +0000 |
commit | 87c8b86c9f8a9929a2a564b2833244c6290e4701 (patch) | |
tree | e428a8e147ec2f2ca4c1b36d2af0818e8cddfa83 /voice_engine/voe_base_impl.h | |
parent | 1d23d5eec85f4b124b4941f7d583e52a85ad5dee (diff) | |
download | webrtc-87c8b86c9f8a9929a2a564b2833244c6290e4701.tar.gz |
Moved the new OnData interface to AudioTranport, and expose the AudioTransport pointer via voe_base
R=tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/7779004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5472 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/voe_base_impl.h')
-rw-r--r-- | voice_engine/voe_base_impl.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/voice_engine/voe_base_impl.h b/voice_engine/voe_base_impl.h index aff1a2ed..00e116ea 100644 --- a/voice_engine/voe_base_impl.h +++ b/voice_engine/voe_base_impl.h @@ -69,9 +69,7 @@ public: virtual int LastError(); - virtual void CaptureCallback(int voe_channel, const void* audio_data, - int bits_per_sample, int sample_rate, - int number_of_channels, int number_of_frames); + virtual AudioTransport* audio_transport() { return this; } // AudioTransport virtual int32_t @@ -104,6 +102,10 @@ public: bool key_pressed, bool need_audio_processing); + virtual void OnData(int voe_channel, const void* audio_data, + int bits_per_sample, int sample_rate, + int number_of_channels, int number_of_frames); + // AudioDeviceObserver virtual void OnErrorIsReported(ErrorCode error); virtual void OnWarningIsReported(WarningCode warning); |