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

Unified Diff: services/media/audio/platform/generic/mixer.cc

Issue 1902183002: Motown: Change media type (stream type) representation (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changes per review feedback. Created 4 years, 8 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: services/media/audio/platform/generic/mixer.cc
diff --git a/services/media/audio/platform/generic/mixer.cc b/services/media/audio/platform/generic/mixer.cc
index 622e2ee9aafebe58d5c71c385e7c26f8772c435f..7d21da74ace59cdfdb18235d1e2123b3acc5bef9 100644
--- a/services/media/audio/platform/generic/mixer.cc
+++ b/services/media/audio/platform/generic/mixer.cc
@@ -24,8 +24,8 @@ Mixer::Mixer(uint32_t pos_filter_width,
neg_filter_width_(neg_filter_width) {
}
-MixerPtr Mixer::Select(const LpcmMediaTypeDetailsPtr& src_format,
- const LpcmMediaTypeDetailsPtr* optional_dst_format) {
+MixerPtr Mixer::Select(const AudioMediaTypeDetailsPtr& src_format,
+ const AudioMediaTypeDetailsPtr* optional_dst_format) {
// We should always have a source format.
DCHECK(src_format);
@@ -33,7 +33,7 @@ MixerPtr Mixer::Select(const LpcmMediaTypeDetailsPtr& src_format,
// probably the ThrottleOutput we are picking a mixer for.
if (!optional_dst_format) { return MixerPtr(new mixers::NoOp()); }
- const LpcmMediaTypeDetailsPtr& dst_format = *optional_dst_format;
+ const AudioMediaTypeDetailsPtr& dst_format = *optional_dst_format;
DCHECK(dst_format);
// If the source sample rate is an integer multiple of the destination sample
« no previous file with comments | « services/media/audio/platform/generic/mixer.h ('k') | services/media/audio/platform/generic/mixers/linear_sampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698