Guitarix
gx_engine::Audiofile Class Reference

#include <gx_convolver.h>

Public Types

enum  {
  TYPE_OTHER, TYPE_CAF, TYPE_WAV, TYPE_AIFF,
  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_AIFF 
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 48 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 56 of file gx_convolver.h.

Constructor & Destructor Documentation

◆ Audiofile()

gx_engine::Audiofile::Audiofile ( void  )

Definition at line 39 of file gx_convolver.cpp.

◆ ~Audiofile()

gx_engine::Audiofile::~Audiofile ( void  )

Definition at line 44 of file gx_convolver.cpp.

Member Function Documentation

◆ chan()

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

Definition at line 74 of file gx_convolver.h.

◆ close()

int gx_engine::Audiofile::close ( void  )

Definition at line 108 of file gx_convolver.cpp.

Referenced by Audiofile().

◆ form()

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

Definition at line 72 of file gx_convolver.h.

◆ open_read()

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

Definition at line 59 of file gx_convolver.cpp.

Referenced by read().

◆ rate()

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

Definition at line 73 of file gx_convolver.h.

◆ read()

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

Definition at line 122 of file gx_convolver.cpp.

◆ seek()

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

Definition at line 115 of file gx_convolver.cpp.

◆ size()

unsigned int gx_engine::Audiofile::size ( void  ) const
inline

Definition at line 75 of file gx_convolver.h.

◆ type()

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

Definition at line 71 of file gx_convolver.h.


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