Yet Another Robot Platform
yarp::sig::file::soundStreamReader Class Reference

#include <yarp/sig/SoundFile.h>

Detailed Description

Definition at line 35 of file SoundFile.h.

Public Member Functions

 soundStreamReader ()
 ~soundStreamReader ()
bool open (const char *filename)
bool close ()
size_t readBlock (Sound &dest, size_t block_size)
bool rewind (size_t sample_offset=0)
size_t getIndex ()

Private Attributes

FILE * fp
size_t index
char fname [255]
struct {
   int   freq
   int   channels
   int   bits
   int   samples
   size_t   data_start_offset

Constructor & Destructor Documentation

◆ soundStreamReader()

yarp::sig::file::soundStreamReader::soundStreamReader ( )

Definition at line 51 of file SoundFile.h.

◆ ~soundStreamReader()

yarp::sig::file::soundStreamReader::~soundStreamReader ( )

Definition at line 58 of file SoundFile.h.

Member Function Documentation

◆ close()

bool yarp::sig::file::soundStreamReader::close ( void  )

Definition at line 250 of file SoundFile.cpp.

◆ getIndex()

size_t yarp::sig::file::soundStreamReader::getIndex ( )

Definition at line 311 of file SoundFile.cpp.

◆ open()

bool yarp::sig::file::soundStreamReader::open ( const char *  filename)

Definition at line 219 of file SoundFile.cpp.

◆ readBlock()

size_t yarp::sig::file::soundStreamReader::readBlock ( Sound dest,
size_t  block_size 

Definition at line 264 of file SoundFile.cpp.

◆ rewind()

bool yarp::sig::file::soundStreamReader::rewind ( size_t  sample_offset = 0)

Definition at line 291 of file SoundFile.cpp.

Member Data Documentation

◆ bits

int yarp::sig::file::soundStreamReader::bits

Definition at line 45 of file SoundFile.h.

◆ channels

int yarp::sig::file::soundStreamReader::channels

Definition at line 44 of file SoundFile.h.

◆ data_start_offset

size_t yarp::sig::file::soundStreamReader::data_start_offset

Definition at line 47 of file SoundFile.h.

◆ fname

char yarp::sig::file::soundStreamReader::fname[255]

Definition at line 40 of file SoundFile.h.

◆ fp

FILE* yarp::sig::file::soundStreamReader::fp

Definition at line 38 of file SoundFile.h.

◆ freq

int yarp::sig::file::soundStreamReader::freq

Definition at line 43 of file SoundFile.h.

◆ index

size_t yarp::sig::file::soundStreamReader::index

Definition at line 39 of file SoundFile.h.

◆ samples

int yarp::sig::file::soundStreamReader::samples

Definition at line 46 of file SoundFile.h.

◆ soundInfo

struct { ... } yarp::sig::file::soundStreamReader::soundInfo

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