Ardour  9.0-pre0-582-g084a23a80d
AudioGrapher::SndfileHandle Class Reference

#include <sndfile.hh>

Inheritance diagram for AudioGrapher::SndfileHandle:
[legend]

Classes

struct  SNDFILE_ref
 

Public Member Functions

 SndfileHandle (void)
 
 SndfileHandle (const char *path, int mode=SFM_READ, int format=0, int channels=0, int samplerate=0)
 
 SndfileHandle (std::string const &path, int mode=SFM_READ, int format=0, int channels=0, int samplerate=0)
 
 SndfileHandle (int fd, bool close_desc, int mode=SFM_READ, int format=0, int channels=0, int samplerate=0)
 
 ~SndfileHandle (void)
 
 SndfileHandle (const SndfileHandle &orig)
 
SndfileHandleoperator= (const SndfileHandle &rhs)
 
void close (void)
 
int refCount (void) const
 
 operator bool () const
 
bool operator== (const SndfileHandle &rhs) const
 
sf_count_t frames (void) const
 
int format (void) const
 
int channels (void) const
 
int samplerate (void) const
 
int error (void) const
 
const char * strError (void) const
 
int command (int cmd, void *data, int datasize)
 
sf_count_t seek (sf_count_t frames, int whence)
 
void writeSync (void)
 
int setString (int str_type, const char *str)
 
const char * getString (int str_type) const
 
sf_count_t read (short *ptr, sf_count_t items)
 
sf_count_t read (int *ptr, sf_count_t items)
 
sf_count_t read (float *ptr, sf_count_t items)
 
sf_count_t read (double *ptr, sf_count_t items)
 
sf_count_t write (const short *ptr, sf_count_t items)
 
sf_count_t write (const int *ptr, sf_count_t items)
 
sf_count_t write (const float *ptr, sf_count_t items)
 
sf_count_t write (const double *ptr, sf_count_t items)
 
sf_count_t readf (short *ptr, sf_count_t frames)
 
sf_count_t readf (int *ptr, sf_count_t frames)
 
sf_count_t readf (float *ptr, sf_count_t frames)
 
sf_count_t readf (double *ptr, sf_count_t frames)
 
sf_count_t writef (const short *ptr, sf_count_t frames)
 
sf_count_t writef (const int *ptr, sf_count_t frames)
 
sf_count_t writef (const float *ptr, sf_count_t frames)
 
sf_count_t writef (const double *ptr, sf_count_t frames)
 
sf_count_t readRaw (void *ptr, sf_count_t bytes)
 
sf_count_t writeRaw (const void *ptr, sf_count_t bytes)
 

Static Public Member Functions

static int formatCheck (int format, int channels, int samplerate)
 

Private Attributes

SNDFILE_refp
 

Detailed Description

Definition at line 64 of file sndfile.hh.

Constructor & Destructor Documentation

◆ SndfileHandle() [1/5]

AudioGrapher::SndfileHandle::SndfileHandle ( void  )
inline

Definition at line 79 of file sndfile.hh.

◆ SndfileHandle() [2/5]

AudioGrapher::SndfileHandle::SndfileHandle ( const char *  path,
int  mode = SFM_READ,
int  format = 0,
int  channels = 0,
int  samplerate = 0 
)

◆ SndfileHandle() [3/5]

AudioGrapher::SndfileHandle::SndfileHandle ( std::string const &  path,
int  mode = SFM_READ,
int  format = 0,
int  channels = 0,
int  samplerate = 0 
)

◆ SndfileHandle() [4/5]

AudioGrapher::SndfileHandle::SndfileHandle ( int  fd,
bool  close_desc,
int  mode = SFM_READ,
int  format = 0,
int  channels = 0,
int  samplerate = 0 
)

◆ ~SndfileHandle()

AudioGrapher::SndfileHandle::~SndfileHandle ( void  )

◆ SndfileHandle() [5/5]

AudioGrapher::SndfileHandle::SndfileHandle ( const SndfileHandle orig)

Member Function Documentation

◆ channels()

int AudioGrapher::SndfileHandle::channels ( void  ) const
inline

Definition at line 102 of file sndfile.hh.

◆ close()

void AudioGrapher::SndfileHandle::close ( void  )

◆ command()

int AudioGrapher::SndfileHandle::command ( int  cmd,
void *  data,
int  datasize 
)

◆ error()

int AudioGrapher::SndfileHandle::error ( void  ) const

◆ format()

int AudioGrapher::SndfileHandle::format ( void  ) const
inline

Definition at line 101 of file sndfile.hh.

◆ formatCheck()

static int AudioGrapher::SndfileHandle::formatCheck ( int  format,
int  channels,
int  samplerate 
)
static

◆ frames()

sf_count_t AudioGrapher::SndfileHandle::frames ( void  ) const
inline

Definition at line 100 of file sndfile.hh.

◆ getString()

const char* AudioGrapher::SndfileHandle::getString ( int  str_type) const

◆ operator bool()

AudioGrapher::SndfileHandle::operator bool ( ) const
inline

Definition at line 96 of file sndfile.hh.

◆ operator=()

SndfileHandle& AudioGrapher::SndfileHandle::operator= ( const SndfileHandle rhs)

◆ operator==()

bool AudioGrapher::SndfileHandle::operator== ( const SndfileHandle rhs) const
inline

Definition at line 98 of file sndfile.hh.

◆ read() [1/4]

sf_count_t AudioGrapher::SndfileHandle::read ( double *  ptr,
sf_count_t  items 
)

◆ read() [2/4]

sf_count_t AudioGrapher::SndfileHandle::read ( float *  ptr,
sf_count_t  items 
)

◆ read() [3/4]

sf_count_t AudioGrapher::SndfileHandle::read ( int *  ptr,
sf_count_t  items 
)

◆ read() [4/4]

sf_count_t AudioGrapher::SndfileHandle::read ( short *  ptr,
sf_count_t  items 
)

◆ readf() [1/4]

sf_count_t AudioGrapher::SndfileHandle::readf ( double *  ptr,
sf_count_t  frames 
)

◆ readf() [2/4]

sf_count_t AudioGrapher::SndfileHandle::readf ( float *  ptr,
sf_count_t  frames 
)

◆ readf() [3/4]

sf_count_t AudioGrapher::SndfileHandle::readf ( int *  ptr,
sf_count_t  frames 
)

◆ readf() [4/4]

sf_count_t AudioGrapher::SndfileHandle::readf ( short *  ptr,
sf_count_t  frames 
)

◆ readRaw()

sf_count_t AudioGrapher::SndfileHandle::readRaw ( void *  ptr,
sf_count_t  bytes 
)

◆ refCount()

int AudioGrapher::SndfileHandle::refCount ( void  ) const
inline

Definition at line 94 of file sndfile.hh.

◆ samplerate()

int AudioGrapher::SndfileHandle::samplerate ( void  ) const
inline

Definition at line 103 of file sndfile.hh.

◆ seek()

sf_count_t AudioGrapher::SndfileHandle::seek ( sf_count_t  frames,
int  whence 
)

◆ setString()

int AudioGrapher::SndfileHandle::setString ( int  str_type,
const char *  str 
)

◆ strError()

const char* AudioGrapher::SndfileHandle::strError ( void  ) const

◆ write() [1/4]

sf_count_t AudioGrapher::SndfileHandle::write ( const double *  ptr,
sf_count_t  items 
)

◆ write() [2/4]

sf_count_t AudioGrapher::SndfileHandle::write ( const float *  ptr,
sf_count_t  items 
)

◆ write() [3/4]

sf_count_t AudioGrapher::SndfileHandle::write ( const int *  ptr,
sf_count_t  items 
)

◆ write() [4/4]

sf_count_t AudioGrapher::SndfileHandle::write ( const short *  ptr,
sf_count_t  items 
)

◆ writef() [1/4]

sf_count_t AudioGrapher::SndfileHandle::writef ( const double *  ptr,
sf_count_t  frames 
)

◆ writef() [2/4]

sf_count_t AudioGrapher::SndfileHandle::writef ( const float *  ptr,
sf_count_t  frames 
)

◆ writef() [3/4]

sf_count_t AudioGrapher::SndfileHandle::writef ( const int *  ptr,
sf_count_t  frames 
)

◆ writef() [4/4]

sf_count_t AudioGrapher::SndfileHandle::writef ( const short *  ptr,
sf_count_t  frames 
)

◆ writeRaw()

sf_count_t AudioGrapher::SndfileHandle::writeRaw ( const void *  ptr,
sf_count_t  bytes 
)

◆ writeSync()

void AudioGrapher::SndfileHandle::writeSync ( void  )

Member Data Documentation

◆ p

SNDFILE_ref* AudioGrapher::SndfileHandle::p
private

Definition at line 75 of file sndfile.hh.


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