#pragma once

#include <cstdint>
#include <vector>

#include "core/audio_types.h"

namespace aptt {

bool IsRenderablePcmFormat(const FormatDescriptor& format);

std::vector<std::uint8_t> ConvertFloat32InterleavedToPcmBytes(
    const std::vector<float>& interleaved_samples,
    std::uint32_t channel_count,
    const FormatDescriptor& format);

}  // namespace aptt
