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

Side by Side Diff: services/media/audio/platform/generic/mixers/linear_sampler.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_ 5 #ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_ 6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
7 7
8 #include "mojo/services/media/common/interfaces/media_types.mojom.h" 8 #include "mojo/services/media/common/interfaces/media_types.mojom.h"
9 #include "services/media/audio/platform/generic/mixer.h" 9 #include "services/media/audio/platform/generic/mixer.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace media { 12 namespace media {
13 namespace audio { 13 namespace audio {
14 namespace mixers { 14 namespace mixers {
15 15
16 class LinearSampler : public Mixer { 16 class LinearSampler : public Mixer {
17 public: 17 public:
18 static MixerPtr Select(const LpcmMediaTypeDetailsPtr& src_format, 18 static MixerPtr Select(const AudioMediaTypeDetailsPtr& src_format,
19 const LpcmMediaTypeDetailsPtr& dst_format); 19 const AudioMediaTypeDetailsPtr& dst_format);
20 20
21 protected: 21 protected:
22 LinearSampler(uint32_t pos_filter_width, uint32_t neg_filter_width) 22 LinearSampler(uint32_t pos_filter_width, uint32_t neg_filter_width)
23 : Mixer(pos_filter_width, neg_filter_width) {} 23 : Mixer(pos_filter_width, neg_filter_width) {}
24 }; 24 };
25 25
26 } // namespace mixers 26 } // namespace mixers
27 } // namespace audio 27 } // namespace audio
28 } // namespace media 28 } // namespace media
29 } // namespace mojo 29 } // namespace mojo
30 30
31 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_ 31 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
OLDNEW
« no previous file with comments | « services/media/audio/platform/generic/mixer.cc ('k') | services/media/audio/platform/generic/mixers/linear_sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698