xoreos  0.0.5
Classes | Namespaces | Macros | Functions | Variables
vorbis.cpp File Reference

Decoding Ogg Vorbis. More...

#include <cassert>
#include <cstring>
#include <queue>
#include <vorbis/vorbisfile.h>
#include "src/common/scopedptr.h"
#include "src/common/disposableptr.h"
#include "src/common/mutex.h"
#include "src/common/util.h"
#include "src/common/readstream.h"
#include "src/sound/audiostream.h"
#include "src/sound/decoders/vorbis.h"
Include dependency graph for vorbis.cpp:

Go to the source code of this file.

Classes

class  Sound::VorbisStream
 
class  Sound::PacketizedVorbisStream
 

Namespaces

 Sound
 

Macros

#define READ_WHOLE_STREAM(x)
 

Functions

static size_t Sound::read_stream_wrap (void *ptr, size_t size, size_t nmemb, void *dataSource)
 
static int Sound::seek_stream_wrap (void *dataSource, ogg_int64_t offset, int whence)
 
static int Sound::close_stream_wrap (void *dataSource)
 
static long Sound::tell_stream_wrap (void *dataSource)
 
RewindableAudioStream * Sound::makeVorbisStream (Common::SeekableReadStream *stream, bool disposeAfterUse)
 Create a new RewindableAudioStream from the Ogg Vorbis data in the given stream. More...
 
PacketizedAudioStream * Sound::makePacketizedVorbisStream (Common::SeekableReadStream &extraData)
 Create a new PacketizedAudioStream capable of decoding vorbis audio data. More...
 
PacketizedAudioStream * Sound::makePacketizedVorbisStream (Common::SeekableReadStream &packet1, Common::SeekableReadStream &packet2, Common::SeekableReadStream &packet3)
 Create a new PacketizedAudioStream capable of decoding vorbis audio data. More...
 

Variables

static ov_callbacks Sound::g_stream_wrap
 

Detailed Description

Decoding Ogg Vorbis.

Definition in file vorbis.cpp.

Macro Definition Documentation

◆ READ_WHOLE_STREAM

#define READ_WHOLE_STREAM (   x)
Value:
do { \
Common::SeekableReadStream &packet = packet##x; \
headerSizes[x - 1] = packet.size(); \
headers[x - 1].reset(new byte[headerSizes[x - 1]]); \
packet.read(headers[x - 1].get(), headerSizes[x - 1]); \
} while (0)
uint8 byte
Definition: types.h:209

Referenced by Sound::PacketizedVorbisStream::parseExtraData().