blob: 903857748416ad8ea83fa0714c8671061add2bc6 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
#define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_
#include "mojo/services/media/common/interfaces/media_types.mojom.h"
#include "services/media/audio/platform/generic/mixer.h"
namespace mojo {
namespace media {
namespace audio {
namespace mixers {
class LinearSampler : public Mixer {
public:
static MixerPtr Select(const AudioMediaTypeDetailsPtr& src_format,
const AudioMediaTypeDetailsPtr& dst_format);
protected:
LinearSampler(uint32_t pos_filter_width, uint32_t neg_filter_width)
: Mixer(pos_filter_width, neg_filter_width) {}
};
} // namespace mixers
} // namespace audio
} // namespace media
} // namespace mojo
#endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_LINEAR_SAMPLER_H_