 |
CUGL 1.3
Cornell University Game Library
|
39 #ifndef __CU_OGG_DECODER_H__
40 #define __CU_OGG_DECODER_H__
41 #include "CUAudioDecoder.h"
43 #include <codecs/vorbis/vorbisfile.h>
76 #pragma mark Constructors
99 bool init(
const char* file)
override {
100 return init(std::string(file));
112 bool init(
const std::string& file)
override;
123 #pragma mark Static Constructors
134 static std::shared_ptr<AudioDecoder>
alloc(
const char* file) {
135 return alloc(std::string(file));
148 static std::shared_ptr<AudioDecoder>
alloc(
const std::string& file);
151 #pragma mark Decoding
165 Sint32
pagein(
float* buffer)
override;
176 void setPage(Uint64 page)
override;
Sint32 pagein(float *buffer) override
bool init(const char *file) override
Definition: CUOGGDecoder.h:99
Definition: CUOGGDecoder.h:66
Definition: CUAudioDecoder.h:55
int _bitstream
Definition: CUOGGDecoder.h:73
void setPage(Uint64 page) override
static std::shared_ptr< AudioDecoder > alloc(const char *file)
Definition: CUOGGDecoder.h:134
SDL_RWops * _source
Definition: CUOGGDecoder.h:69
OggVorbis_File _oggfile
Definition: CUOGGDecoder.h:71