Files
MuditaOS/module-audio/Audio/transcode/MonoToStereo.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

24 lines
896 B
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
#include "Transform.hpp"
namespace audio::transcode
{
/**
* @brief Mono to stereo PCM16 data transform
*/
class MonoToStereo : public Transform
{
public:
auto transform(const Span &span, const Span &transformSpace) const -> Span override;
auto validateInputFormat(const audio::AudioFormat &inputFormat) const noexcept -> bool override;
auto transformFormat(const audio::AudioFormat &inputFormat) const noexcept -> audio::AudioFormat override;
auto transformBlockSize(std::size_t blockSize) const noexcept -> std::size_t override;
auto transformBlockSizeInverted(std::size_t blockSize) const noexcept -> std::size_t override;
};
} // namespace audio::transcode