You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
852 B
C++

#ifndef GUARD_THAIR_POST_OVULATION_INDIAN_SANDALWOOD_SWORDFISHES_2588
#define GUARD_THAIR_POST_OVULATION_INDIAN_SANDALWOOD_SWORDFISHES_2588
#pragma once
#include "channel.hpp"
#include "options.hpp"
#include <cstdint>
#include <span>
class DummyDecoder
{
public:
[[nodiscard]] std::span<const float> Decode(
float, std::span<const float> in)
{
buf.assign(in.begin(), in.end());
return buf;
}
static constexpr void Reset() noexcept {}
[[nodiscard]] static constexpr unsigned GetBlockSize() noexcept { return 0; }
[[nodiscard]] static std::vector<Option> GetOptions() { return {}; }
[[nodiscard]] static std::vector<Channel::E> GetChannels()
{ return {Channel::FRONT_LEFT, Channel::FRONT_RIGHT}; }
[[nodiscard]] static constexpr uint32_t GetDelay() noexcept { return 0; }
private:
std::vector<float> buf;
};
#endif