#pragma once #include "AudioClip.h" #include class OggVorbisFileReader : public AudioClip { public: OggVorbisFileReader(const std::filesystem::path& filePath); std::unique_ptr clone() const override; int getSampleRate() const override { return sampleRate; } size_type size() const override { return sampleCount; } private: SampleReader createUnsafeSampleReader() const override; std::filesystem::path filePath; int sampleRate; int channelCount; size_type sampleCount; };