| OLD | NEW |
| 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_POINT_SAMPLER_H_ | 5 #ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_ |
| 6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_POINT_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 PointSampler : public Mixer { | 16 class LinearSampler : public Mixer { |
| 17 public: | 17 public: |
| 18 static MixerPtr Select(const LpcmMediaTypeDetailsPtr& src_format, | 18 static MixerPtr Select(const LpcmMediaTypeDetailsPtr& src_format, |
| 19 const LpcmMediaTypeDetailsPtr& dst_format); | 19 const LpcmMediaTypeDetailsPtr& dst_format); |
| 20 | 20 |
| 21 protected: | 21 protected: |
| 22 PointSampler(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_POINT_SAMPLER_H_ | 31 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_ |
| OLD | NEW |