Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tangara-fw/src/audio/include/stream_info.hpp

23 lines
413 B

#pragma once
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
2 years ago
#include "cbor.h"
#include "result.hpp"
#include "sys/_stdint.h"
namespace audio {
struct StreamInfo {
std::optional<std::string> path;
std::optional<uint8_t> channels;
std::optional<uint8_t> bits_per_sample;
std::optional<uint16_t> sample_rate;
std::optional<size_t> chunk_size;
};
} // namespace audio