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

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: put call to add stream in else statement 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..615e4f43f33ec15e339f388e0093658de59456f3 100644
--- a/media/audio/cras/cras_input.h
+++ b/media/audio/cras/cras_input.h
@@ -51,6 +51,15 @@ class CrasInputStream : public AgcAudioStream<AudioInputStream> {
const timespec* sample_ts,
void* arg);
+ // This will be 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