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

Unified Diff: media/base/fake_audio_renderer_sink.h

Issue 2752323002: Support Opus Ambisonics playback (Closed)
Patch Set: another fix for unreliable ffmpeg channels vs layout Created 3 years, 7 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
« no previous file with comments | « media/base/audio_decoder_config.cc ('k') | media/base/fake_audio_renderer_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/fake_audio_renderer_sink.h
diff --git a/media/base/fake_audio_renderer_sink.h b/media/base/fake_audio_renderer_sink.h
index 578a65ab4532af980961f1f1ea4e94985516751a..7e87a960ee211157558220fd18237ad0a13609a9 100644
--- a/media/base/fake_audio_renderer_sink.h
+++ b/media/base/fake_audio_renderer_sink.h
@@ -52,6 +52,9 @@ class FakeAudioRendererSink : public AudioRendererSink {
bool Render(AudioBus* dest, base::TimeDelta delay, int* frames_written);
void OnRenderError();
+ // Enables different tests to have different settings.
+ void SetIsOptimizedForHardwareParameters(bool value);
+
State state() const { return state_; }
protected:
@@ -63,6 +66,7 @@ class FakeAudioRendererSink : public AudioRendererSink {
State state_;
RenderCallback* callback_;
OutputDeviceInfo output_device_info_;
+ bool is_optimized_for_hw_params_;
DISALLOW_COPY_AND_ASSIGN(FakeAudioRendererSink);
};
« no previous file with comments | « media/base/audio_decoder_config.cc ('k') | media/base/fake_audio_renderer_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698