Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
sound::OggVorbisBufferSource Struct Reference

For vorbisfile to read from our buffer instead of from a file. More...

#include <ogg_file.h>

+ Collaboration diagram for sound::OggVorbisBufferSource:

Static Public Member Functions

static size_t read_func (void *ptr, size_t size, size_t nmemb, void *datasource) noexcept
 
static int seek_func (void *datasource, ogg_int64_t offset, int whence) noexcept
 
static int close_func (void *datasource) noexcept
 
static long tell_func (void *datasource) noexcept
 

Public Attributes

std::string buf
 
size_t cur_offset = 0
 

Static Public Attributes

static const ov_callbacks s_ov_callbacks
 

Detailed Description

For vorbisfile to read from our buffer instead of from a file.

Member Function Documentation

◆ close_func()

int sound::OggVorbisBufferSource::close_func ( void * datasource)
staticnoexcept

◆ read_func()

size_t sound::OggVorbisBufferSource::read_func ( void * ptr,
size_t size,
size_t nmemb,
void * datasource )
staticnoexcept

References buf, cur_offset, and MYMIN.

◆ seek_func()

int sound::OggVorbisBufferSource::seek_func ( void * datasource,
ogg_int64_t offset,
int whence )
staticnoexcept

References buf, cur_offset, and MYMIN.

◆ tell_func()

long sound::OggVorbisBufferSource::tell_func ( void * datasource)
staticnoexcept

References cur_offset.

Member Data Documentation

◆ buf

std::string sound::OggVorbisBufferSource::buf

Referenced by read_func(), and seek_func().

◆ cur_offset

size_t sound::OggVorbisBufferSource::cur_offset = 0

Referenced by read_func(), seek_func(), and tell_func().

◆ s_ov_callbacks

const ov_callbacks sound::OggVorbisBufferSource::s_ov_callbacks
static
Initial value:
= {
}
static long tell_func(void *datasource) noexcept
Definition ogg_file.cpp:67
static size_t read_func(void *ptr, size_t size, size_t nmemb, void *datasource) noexcept
Definition ogg_file.cpp:21
static int close_func(void *datasource) noexcept
Definition ogg_file.cpp:60
static int seek_func(void *datasource, ogg_int64_t offset, int whence) noexcept
Definition ogg_file.cpp:31

Referenced by sound::SoundDataUnopenBuffer::open().


The documentation for this struct was generated from the following files: