You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
588 B
C++
22 lines
588 B
C++
#pragma comment(user, "license")
|
|
|
|
#ifndef VORBIS_DECODER_H
|
|
#define VORBIS_DECODER_H
|
|
|
|
#include "AudioDecoder.h"
|
|
#include "libvorbis/include/vorbis/vorbisfile.h"
|
|
|
|
namespace nqr
|
|
{
|
|
|
|
struct VorbisDecoder : public nqr::BaseDecoder
|
|
{
|
|
VorbisDecoder() {}
|
|
virtual ~VorbisDecoder() {}
|
|
virtual int LoadFromPath(nqr::AudioData * data, const std::string & path) override;
|
|
virtual int LoadFromBuffer(nqr::AudioData * data, const std::vector<uint8_t> & memory) override;
|
|
virtual std::vector<std::string> GetSupportedFileExtensions() override;
|
|
};
|
|
|
|
} // end namespace nqr
|
|
#endif |