Index: media/audio/cras/cras_input.h |
diff --git a/media/audio/cras/cras_input.h b/media/audio/cras/cras_input.h |
index 1919224d9a9b2f77187c35a1f0a669f5aef2d629..dd9b3fd1977907445d155c7826ae43290733574a 100644 |
--- a/media/audio/cras/cras_input.h |
+++ b/media/audio/cras/cras_input.h |
@@ -8,7 +8,8 @@ |
#include <cras_client.h> |
#include <string> |
- |
+ |
+#include "base/cancelable_callback.h" |
dgreid
2014/09/17 21:16:23
Don't need this one.
rpetterson
2014/09/17 21:32:00
Done.
|
#include "base/compiler_specific.h" |
#include "media/audio/agc_audio_stream.h" |
#include "media/audio/audio_io.h" |
@@ -51,6 +52,15 @@ class CrasInputStream : public AgcAudioStream<AudioInputStream> { |
const timespec* sample_ts, |
void* arg); |
+ // Handles requests to get a sample from the provided buffer. This will be |
dgreid
2014/09/17 21:16:23
I'd remove the first sentence of this comment.
rpetterson
2014/09/17 21:32:01
Done.
|
+ // called by the audio server once after it recieves a wakeup and has data. |
+ static int HotwordSampleReady(cras_client* client, |
+ cras_audio_format* fmt, |
+ uint8* hotword_phrase, |
+ size_t frames, |
+ const timespec* sample_ts, |
+ void* arg); |
+ |
// Handles notification that there was an error with the playback stream. |
static int StreamError(cras_client* client, |
cras_stream_id_t stream_id, |