blob: 08617b27b9478cf23df71f53e5d48c3111c8bf6e [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/media/playback/mediaplayer/core/test/fake_audio_renderer.h"
#include "src/media/playback/mediaplayer/graph/types/audio_stream_type.h"
namespace media_player {
namespace test {
// static
std::shared_ptr<FakeAudioRenderer> FakeAudioRenderer::Create() {
return std::make_shared<FakeAudioRenderer>();
}
FakeAudioRenderer::FakeAudioRenderer() {
supported_stream_types_.push_back(AudioStreamTypeSet::Create(
{StreamType::kAudioEncodingLpcm},
AudioStreamType::SampleFormat::kSigned16, Range<uint32_t>(1, 2),
Range<uint32_t>(1, 88200)));
supported_stream_types_.push_back(AudioStreamTypeSet::Create(
{StreamType::kAudioEncodingLpcm}, AudioStreamType::SampleFormat::kFloat,
Range<uint32_t>(1, 2), Range<uint32_t>(1, 88200)));
}
} // namespace test
} // namespace media_player