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

#include <yarp/sig/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
 
soundInfo
 

Detailed Description

Definition at line 32 of file SoundFile.h.

Constructor & Destructor Documentation

◆ soundStreamReader()

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

Definition at line 48 of file SoundFile.h.

◆ ~soundStreamReader()

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

Definition at line 55 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 42 of file SoundFile.h.

◆ channels

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

Definition at line 41 of file SoundFile.h.

◆ data_start_offset

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

Definition at line 44 of file SoundFile.h.

◆ fname

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

Definition at line 37 of file SoundFile.h.

◆ fp

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

Definition at line 35 of file SoundFile.h.

◆ freq

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

Definition at line 40 of file SoundFile.h.

◆ index

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

Definition at line 36 of file SoundFile.h.

◆ samples

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

Definition at line 43 of file SoundFile.h.

◆ soundInfo

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

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