commit | 75dd2885c5e8fe1db6ea4384fe744e0bdecdcaeb | [log] [tgz] |
---|---|---|
author | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Tue Feb 11 20:52:30 2014 +0000 |
committer | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Tue Feb 11 20:52:30 2014 +0000 |
tree | 78beba2df0c0be1dea0e4d4e5172f0238af707c6 | |
parent | aa1278de468064dd7c88f05e9caae61e02f2a4be [diff] |
Add an interface for accepting keypress signals to AudioProcessing. R=aluebs@webrtc.org Review URL: https://webrtc-codereview.appspot.com/8429004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5529 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h index 09d4cd4..82e6e50 100644 --- a/webrtc/modules/audio_processing/include/audio_processing.h +++ b/webrtc/modules/audio_processing/include/audio_processing.h
@@ -231,6 +231,11 @@ virtual int set_stream_delay_ms(int delay) = 0; virtual int stream_delay_ms() const = 0; + // Call to signal that a key press occurred (true) or did not occur (false) + // with this chunk of audio. + virtual void set_stream_key_pressed(bool key_pressed) = 0; + virtual bool stream_key_pressed() const = 0; + // Sets a delay |offset| in ms to add to the values passed in through // set_stream_delay_ms(). May be positive or negative. //
diff --git a/webrtc/modules/audio_processing/include/mock_audio_processing.h b/webrtc/modules/audio_processing/include/mock_audio_processing.h index 46520ab..9ef7904 100644 --- a/webrtc/modules/audio_processing/include/mock_audio_processing.h +++ b/webrtc/modules/audio_processing/include/mock_audio_processing.h
@@ -209,6 +209,10 @@ int(int delay)); MOCK_CONST_METHOD0(stream_delay_ms, int()); + MOCK_METHOD1(set_stream_key_pressed, + void(bool key_pressed)); + MOCK_CONST_METHOD0(stream_key_pressed, + bool()); MOCK_METHOD1(set_delay_offset_ms, void(int offset)); MOCK_CONST_METHOD0(delay_offset_ms,