Loading...
Searching...
No Matches
SoundFileReader.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
57 std::uint64_t sampleCount{};
virtual std::optional< Info > open(InputStream &stream)=0
Open a sound file for reading.
virtual void seek(std::uint64_t sampleOffset)=0
Change the current read position to the given sample offset.
virtual std::uint64_t read(std::int16_t *samples, std::uint64_t maxCount)=0
Read audio samples from the open file.
Definition AudioResource.hpp:36
Structure holding the audio properties of a sound file.
Definition SoundFileReader.hpp:56
std::vector< SoundChannel > channelMap
Map of position in sample frame to sound channel.
Definition SoundFileReader.hpp:60