Marsyas  0.5.0-beta1
Public Member Functions | Data Fields
AbsSoundFileSink Class Reference

Abstract Interface for SoundFileSinks of various formats. More...

#include <AbsSoundFileSink.h>

Inherits MarSystem.

Inherited by AuFileSink, MP3FileSink, and WavFileSink.

Public Member Functions

 AbsSoundFileSink (std::string type, std::string name)
 AbsSoundFileSink (const AbsSoundFileSink &a)
virtual void myProcess (realvec &in, realvec &out)=0
 Processes data.
virtual void putHeader (std::string filename)=0
virtual ~AbsSoundFileSink ()

Data Fields

bool hasData_
mrs_natural pos_

Detailed Description

Abstract Interface for SoundFileSinks of various formats.

Definition at line 34 of file AbsSoundFileSink.h.


Constructor & Destructor Documentation

AbsSoundFileSink ( std::string  type,
std::string  name 
)

Definition at line 25 of file AbsSoundFileSink.cpp.

~AbsSoundFileSink ( ) [virtual]

Definition at line 29 of file AbsSoundFileSink.cpp.

Definition at line 33 of file AbsSoundFileSink.cpp.


Member Function Documentation

virtual void myProcess ( realvec in,
realvec out 
) [pure virtual]

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Implemented in WavFileSink, AuFileSink, and MP3FileSink.

virtual void putHeader ( std::string  filename) [pure virtual]

Implemented in WavFileSink, AuFileSink, and MP3FileSink.


Field Documentation

bool hasData_

Definition at line 47 of file AbsSoundFileSink.h.

Definition at line 46 of file AbsSoundFileSink.h.


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