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

Unified Diff: chromecast/media/cma/backend/alsa/slew_volume.h

Issue 2738873002: [Chromecast] Implement new volume control API (Closed)
Patch Set: slan comments Created 3 years, 9 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: chromecast/media/cma/backend/alsa/slew_volume.h
diff --git a/chromecast/media/cma/backend/alsa/slew_volume.h b/chromecast/media/cma/backend/alsa/slew_volume.h
index 44c042d2f5fcfdefe9b1c8986e71a668b706e782..6308f50a77dcad05b5e6262d6c77b6d7bf94ef52 100644
--- a/chromecast/media/cma/backend/alsa/slew_volume.h
+++ b/chromecast/media/cma/backend/alsa/slew_volume.h
@@ -23,6 +23,10 @@ class SlewVolume {
void SetSampleRate(int sample_rate);
void SetVolume(double volume_scale);
+ // Called to indicate that the stream was interrupted; volume changes can be
+ // applied immediately.
+ void Interrupted();
+
// Assumes 1 channel float data that is 16-byte aligned. Smoothly calculates
// dest[i] += src[i] * volume_scaling
// ProcessFMAC will be called once for each channel of audio present and
@@ -44,6 +48,7 @@ class SlewVolume {
int max_slew_time_down_ms_;
double max_slew_up_;
double max_slew_down_;
+ bool interrupted_ = true;
DISALLOW_COPY_AND_ASSIGN(SlewVolume);
};
« no previous file with comments | « chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.cc ('k') | chromecast/media/cma/backend/alsa/slew_volume.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698