Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: media/audio/cras/cras_input.h

Issue 551823005: [Hotword] Adding audio parameters to handle audio coming from the DSP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a little cleanup Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698