Sha256: 2d44c572923f84ad7fb6d50004a37071eac6f91f97e698db28ed5c2ece569af1
Contents?: true
Size: 834 Bytes
Versions: 3
Compression:
Stored size: 834 Bytes
Contents
#pragma once #include <Gosu/Fwd.hpp> #ifdef GOSU_IS_IPHONE // Ignore OpenAL deprecation warnings. If iOS stops shipping OpenAL, it's more likely that we // bundle our own version of it than that we switch to another audio API. #define OPENAL_DEPRECATED #include <OpenAL/al.h> #else #include <al.h> #endif #include <cstddef> #include <memory> #include <string> #include <vector> namespace Gosu { class AudioFile { struct Impl; std::unique_ptr<Impl> pimpl; public: explicit AudioFile(const std::string& filename); explicit AudioFile(Buffer buffer); ~AudioFile(); ALenum format() const; ALuint sample_rate() const; std::size_t read_data(void* dest, std::size_t length); void rewind(); const std::vector<char>& decoded_data(); }; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gosu-2.0.0.pre8 | src/AudioFile.hpp |
gosu-2.0.0.pre7 | src/AudioFile.hpp |
gosu-2.0.0.pre6 | src/AudioFile.hpp |