capo-lite v2.0.1
Simple audio playback library
 
Loading...
Searching...
No Matches
buffer.hpp File Reference
#include <cstdint>
#include <optional>
#include <span>
#include <vector>

Go to the source code of this file.

Classes

class  capo::Buffer
 Audio Buffer: stores decoded PCM data in memory. More...
 

Namespaces

namespace  capo
 

Enumerations

enum class  capo::Encoding : std::int8_t { capo::Wav , capo::Mp3 , capo::Flac }
 Format of encoded data. More...
 

Functions

auto capo::guess_encoding (char const *path) -> std::optional< Encoding >
 Guess the Encoding format based on the file extension.
 
auto capo::file_to_bytes (char const *path) -> std::vector< std::byte >
 Load file data as a binary byte array.