Guitarix
gx_engine::Audiofile Class Reference

#include <gx_convolver.h>

Public Types

enum  { TYPE_OTHER, TYPE_CAF, TYPE_WAV, TYPE_AMB }
 
enum  {
  FORM_OTHER, FORM_16BIT, FORM_24BIT, FORM_32BIT,
  FORM_FLOAT
}
 
enum  {
  ERR_NONE = 0, ERR_MODE = -1, ERR_TYPE = -2, ERR_FORM = -3,
  ERR_OPEN = -4, ERR_SEEK = -5, ERR_DATA = -6, ERR_READ = -7,
  ERR_WRITE = -8
}
 

Public Member Functions

 Audiofile (void)
 
 ~Audiofile (void)
 
int type (void) const
 
int form (void) const
 
int rate (void) const
 
int chan (void) const
 
unsigned int size (void) const
 
int open_read (string name)
 
int close (void)
 
int seek (unsigned int posit)
 
int read (float *data, unsigned int frames)
 

Detailed Description

Definition at line 37 of file gx_convolver.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TYPE_OTHER 
TYPE_CAF 
TYPE_WAV 
TYPE_AMB 

Definition at line 40 of file gx_convolver.h.

◆ anonymous enum

anonymous enum
Enumerator
FORM_OTHER 
FORM_16BIT 
FORM_24BIT 
FORM_32BIT 
FORM_FLOAT 

Definition at line 47 of file gx_convolver.h.

◆ anonymous enum

anonymous enum
Enumerator
ERR_NONE 
ERR_MODE 
ERR_TYPE 
ERR_FORM 
ERR_OPEN 
ERR_SEEK 
ERR_DATA 
ERR_READ 
ERR_WRITE 

Definition at line 55 of file gx_convolver.h.

Constructor & Destructor Documentation

◆ Audiofile()

gx_engine::Audiofile::Audiofile ( void  )

Definition at line 35 of file gx_convolver.cpp.

◆ ~Audiofile()

gx_engine::Audiofile::~Audiofile ( void  )

Definition at line 40 of file gx_convolver.cpp.

Member Function Documentation

◆ chan()

int gx_engine::Audiofile::chan ( void  ) const
inline

◆ close()

int gx_engine::Audiofile::close ( void  )

Definition at line 101 of file gx_convolver.cpp.

Referenced by gx_engine::GxConvolverBase::checkstate(), size(), and ~Audiofile().

◆ form()

int gx_engine::Audiofile::form ( void  ) const
inline

Definition at line 71 of file gx_convolver.h.

Referenced by gx_engine::read_audio().

◆ open_read()

int gx_engine::Audiofile::open_read ( string  name)

◆ rate()

int gx_engine::Audiofile::rate ( void  ) const
inline

◆ read()

int gx_engine::Audiofile::read ( float *  data,
unsigned int  frames 
)

◆ seek()

int gx_engine::Audiofile::seek ( unsigned int  posit)

Definition at line 108 of file gx_convolver.cpp.

Referenced by gx_engine::GxConvolverBase::checkstate(), and size().

◆ size()

◆ type()

int gx_engine::Audiofile::type ( void  ) const
inline

Definition at line 70 of file gx_convolver.h.

Referenced by gx_engine::read_audio().


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