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

Unified Diff: services/media/audio/platform/generic/mixers/point_sampler.cc

Issue 1509323002: Mojom updates for Motown. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync with master Created 5 years 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/mixers/point_sampler.cc
diff --git a/services/media/audio/platform/generic/mixers/point_sampler.cc b/services/media/audio/platform/generic/mixers/point_sampler.cc
index b2d6f28bcb3f5a24b81aa585e55a78d46e1f41a4..c843c1cf4d94bcd80326216095217f453221adf2 100644
--- a/services/media/audio/platform/generic/mixers/point_sampler.cc
+++ b/services/media/audio/platform/generic/mixers/point_sampler.cc
@@ -124,7 +124,7 @@ template <typename DType,
typename SType>
static inline MixerPtr SelectPSM(const LpcmMediaTypeDetailsPtr& src_format,
const LpcmMediaTypeDetailsPtr& dst_format) {
- switch (src_format->samples_per_frame) {
+ switch (src_format->channels) {
case 1:
return SelectPSM<DType, DChCount, SType, 1>(src_format, dst_format);
case 2:
@@ -151,7 +151,7 @@ static inline MixerPtr SelectPSM(const LpcmMediaTypeDetailsPtr& src_format,
template <typename DType>
static inline MixerPtr SelectPSM(const LpcmMediaTypeDetailsPtr& src_format,
const LpcmMediaTypeDetailsPtr& dst_format) {
- switch (dst_format->samples_per_frame) {
+ switch (dst_format->channels) {
case 1:
return SelectPSM<DType, 1>(src_format, dst_format);
case 2:

Powered by Google App Engine
This is Rietveld 408576698