openMSX
Public Member Functions | List of all members
openmsx::OggReader Class Reference

#include <OggReader.hh>

Public Member Functions

 OggReader (const OggReader &)=delete
 
OggReaderoperator= (const OggReader &)=delete
 
 OggReader (const Filename &filename, CliComm &cli)
 
 ~OggReader ()
 
bool seek (size_t frame, size_t sample)
 
unsigned getSampleRate () const
 
void getFrameNo (RawFrame &frame, size_t frameno)
 
const AudioFragmentgetAudio (size_t sample)
 
size_t getFrames () const
 
int getFrameRate () const
 
bool stopFrame (size_t frame) const
 
size_t getChapter (int chapterNo) const
 

Detailed Description

Definition at line 39 of file OggReader.hh.

Constructor & Destructor Documentation

◆ OggReader() [1/2]

openmsx::OggReader::OggReader ( const OggReader )
delete

◆ OggReader() [2/2]

openmsx::OggReader::OggReader ( const Filename filename,
CliComm cli 
)

Definition at line 46 of file OggReader.cc.

References openmsx::File::getSize().

◆ ~OggReader()

openmsx::OggReader::~OggReader ( )

Member Function Documentation

◆ getAudio()

const AudioFragment * openmsx::OggReader::getAudio ( size_t  sample)

◆ getChapter()

size_t openmsx::OggReader::getChapter ( int  chapterNo) const

Definition at line 972 of file OggReader.cc.

References end(), and ranges::lower_bound().

◆ getFrameNo()

void openmsx::OggReader::getFrameNo ( RawFrame frame,
size_t  frameno 
)

◆ getFrameRate()

int openmsx::OggReader::getFrameRate ( ) const
inline

Definition at line 53 of file OggReader.hh.

◆ getFrames()

size_t openmsx::OggReader::getFrames ( ) const
inline

Definition at line 52 of file OggReader.hh.

◆ getSampleRate()

unsigned openmsx::OggReader::getSampleRate ( ) const
inline

Definition at line 49 of file OggReader.hh.

Referenced by getAudio().

◆ operator=()

OggReader& openmsx::OggReader::operator= ( const OggReader )
delete

◆ seek()

bool openmsx::OggReader::seek ( size_t  frame,
size_t  sample 
)

◆ stopFrame()

bool openmsx::OggReader::stopFrame ( size_t  frame) const

Definition at line 967 of file OggReader.cc.

References ranges::binary_search().


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