E:/VEMUS/Vemus/CoreServices/sndfile.h File Reference

#include <stdio.h>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  SF_INFO
struct  SF_FORMAT_INFO
struct  SF_DITHER_INFO
struct  SF_EMBED_FILE_INFO
struct  SF_INSTRUMENT

Defines

#define SNDFILE_1
#define SF_COUNT_MAX   0x7FFFFFFFFFFFFFFFi64

Typedefs

typedef struct SNDFILE_tag SNDFILE
typedef __int64 sf_count_t
typedef struct SF_INFO SF_INFO

Enumerations

enum  {
  SF_FORMAT_WAV = 0x010000, SF_FORMAT_AIFF = 0x020000, SF_FORMAT_AU = 0x030000, SF_FORMAT_RAW = 0x040000,
  SF_FORMAT_PAF = 0x050000, SF_FORMAT_SVX = 0x060000, SF_FORMAT_NIST = 0x070000, SF_FORMAT_VOC = 0x080000,
  SF_FORMAT_IRCAM = 0x0A0000, SF_FORMAT_W64 = 0x0B0000, SF_FORMAT_MAT4 = 0x0C0000, SF_FORMAT_MAT5 = 0x0D0000,
  SF_FORMAT_PVF = 0x0E0000, SF_FORMAT_XI = 0x0F0000, SF_FORMAT_HTK = 0x100000, SF_FORMAT_SDS = 0x110000,
  SF_FORMAT_AVR = 0x120000, SF_FORMAT_WAVEX = 0x130000, SF_FORMAT_PCM_S8 = 0x0001, SF_FORMAT_PCM_16 = 0x0002,
  SF_FORMAT_PCM_24 = 0x0003, SF_FORMAT_PCM_32 = 0x0004, SF_FORMAT_PCM_U8 = 0x0005, SF_FORMAT_FLOAT = 0x0006,
  SF_FORMAT_DOUBLE = 0x0007, SF_FORMAT_ULAW = 0x0010, SF_FORMAT_ALAW = 0x0011, SF_FORMAT_IMA_ADPCM = 0x0012,
  SF_FORMAT_MS_ADPCM = 0x0013, SF_FORMAT_GSM610 = 0x0020, SF_FORMAT_VOX_ADPCM = 0x0021, SF_FORMAT_G721_32 = 0x0030,
  SF_FORMAT_G723_24 = 0x0031, SF_FORMAT_G723_40 = 0x0032, SF_FORMAT_DWVW_12 = 0x0040, SF_FORMAT_DWVW_16 = 0x0041,
  SF_FORMAT_DWVW_24 = 0x0042, SF_FORMAT_DWVW_N = 0x0043, SF_FORMAT_DPCM_8 = 0x0050, SF_FORMAT_DPCM_16 = 0x0051,
  SF_ENDIAN_FILE = 0x00000000, SF_ENDIAN_LITTLE = 0x10000000, SF_ENDIAN_BIG = 0x20000000, SF_ENDIAN_CPU = 0x30000000,
  SF_FORMAT_SUBMASK = 0x0000FFFF, SF_FORMAT_TYPEMASK = 0x0FFF0000, SF_FORMAT_ENDMASK = 0x30000000
}
enum  {
  SFC_GET_LIB_VERSION = 0x1000, SFC_GET_LOG_INFO = 0x1001, SFC_GET_NORM_DOUBLE = 0x1010, SFC_GET_NORM_FLOAT = 0x1011,
  SFC_SET_NORM_DOUBLE = 0x1012, SFC_SET_NORM_FLOAT = 0x1013, SFC_GET_SIMPLE_FORMAT_COUNT = 0x1020, SFC_GET_SIMPLE_FORMAT = 0x1021,
  SFC_GET_FORMAT_INFO = 0x1028, SFC_GET_FORMAT_MAJOR_COUNT = 0x1030, SFC_GET_FORMAT_MAJOR = 0x1031, SFC_GET_FORMAT_SUBTYPE_COUNT = 0x1032,
  SFC_GET_FORMAT_SUBTYPE = 0x1033, SFC_CALC_SIGNAL_MAX = 0x1040, SFC_CALC_NORM_SIGNAL_MAX = 0x1041, SFC_CALC_MAX_ALL_CHANNELS = 0x1042,
  SFC_CALC_NORM_MAX_ALL_CHANNELS = 0x1043, SFC_SET_ADD_PEAK_CHUNK = 0x1050, SFC_UPDATE_HEADER_NOW = 0x1060, SFC_SET_UPDATE_HEADER_AUTO = 0x1061,
  SFC_FILE_TRUNCATE = 0x1080, SFC_SET_RAW_START_OFFSET = 0x1090, SFC_SET_DITHER_ON_WRITE = 0x10A0, SFC_SET_DITHER_ON_READ = 0x10A1,
  SFC_GET_DITHER_INFO_COUNT = 0x10A2, SFC_GET_DITHER_INFO = 0x10A3, SFC_GET_EMBED_FILE_INFO = 0x10B0, SFC_SET_CLIPPING = 0x10C0,
  SFC_GET_CLIPPING = 0x10C1, SFC_GET_INSTRUMENT = 0x10D0, SFC_SET_INSTRUMENT = 0x10D1, SFC_TEST_IEEE_FLOAT_REPLACE = 0x6001,
  SFC_SET_ADD_DITHER_ON_WRITE = 0x1070, SFC_SET_ADD_DITHER_ON_READ = 0x1071
}
enum  {
  SF_STR_TITLE = 0x01, SF_STR_COPYRIGHT = 0x02, SF_STR_SOFTWARE = 0x03, SF_STR_ARTIST = 0x04,
  SF_STR_COMMENT = 0x05, SF_STR_DATE = 0x06
}
enum  {
  SF_FALSE = 0, SF_TRUE = 1, SFM_READ = 0x10, SFM_WRITE = 0x20,
  SFM_RDWR = 0x30
}
enum  { SF_ERR_NO_ERROR = 0, SF_ERR_UNRECOGNISED_FORMAT = 1, SF_ERR_SYSTEM = 2 }
enum  {
  SFD_DEFAULT_LEVEL = 0, SFD_CUSTOM_LEVEL = 0x40000000, SFD_NO_DITHER = 500, SFD_WHITE = 501,
  SFD_TRIANGULAR_PDF = 502
}
enum  { SF_LOOP_NONE = 800, SF_LOOP_FORWARD, SF_LOOP_BACKWARD }

Functions

SNDFILEsf_open (const char *path, int mode, SF_INFO *sfinfo)
SNDFILEsf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc)
int sf_error (SNDFILE *sndfile)
const char * sf_strerror (SNDFILE *sndfile)
const char * sf_error_number (int errnum)
int sf_perror (SNDFILE *sndfile)
int sf_error_str (SNDFILE *sndfile, char *str, size_t len)
int sf_command (SNDFILE *sndfile, int command, void *data, int datasize)
int sf_format_check (const SF_INFO *info)
sf_count_t sf_seek (SNDFILE *sndfile, sf_count_t frames, int whence)
int sf_set_string (SNDFILE *sndfile, int str_type, const char *str)
const char * sf_get_string (SNDFILE *sndfile, int str_type)
sf_count_t sf_read_raw (SNDFILE *sndfile, void *ptr, sf_count_t bytes)
sf_count_t sf_write_raw (SNDFILE *sndfile, void *ptr, sf_count_t bytes)
sf_count_t sf_readf_short (SNDFILE *sndfile, short *ptr, sf_count_t frames)
sf_count_t sf_writef_short (SNDFILE *sndfile, short *ptr, sf_count_t frames)
sf_count_t sf_readf_int (SNDFILE *sndfile, int *ptr, sf_count_t frames)
sf_count_t sf_writef_int (SNDFILE *sndfile, int *ptr, sf_count_t frames)
sf_count_t sf_readf_float (SNDFILE *sndfile, float *ptr, sf_count_t frames)
sf_count_t sf_writef_float (SNDFILE *sndfile, float *ptr, sf_count_t frames)
sf_count_t sf_readf_double (SNDFILE *sndfile, double *ptr, sf_count_t frames)
sf_count_t sf_writef_double (SNDFILE *sndfile, double *ptr, sf_count_t frames)
sf_count_t sf_read_short (SNDFILE *sndfile, short *ptr, sf_count_t items)
sf_count_t sf_write_short (SNDFILE *sndfile, short *ptr, sf_count_t items)
sf_count_t sf_read_int (SNDFILE *sndfile, int *ptr, sf_count_t items)
sf_count_t sf_write_int (SNDFILE *sndfile, int *ptr, sf_count_t items)
sf_count_t sf_read_float (SNDFILE *sndfile, float *ptr, sf_count_t items)
sf_count_t sf_write_float (SNDFILE *sndfile, float *ptr, sf_count_t items)
sf_count_t sf_read_double (SNDFILE *sndfile, double *ptr, sf_count_t items)
sf_count_t sf_write_double (SNDFILE *sndfile, double *ptr, sf_count_t items)
int sf_close (SNDFILE *sndfile)


Define Documentation

#define SF_COUNT_MAX   0x7FFFFFFFFFFFFFFFi64

#define SNDFILE_1


Typedef Documentation

typedef __int64 sf_count_t

typedef struct SF_INFO SF_INFO

typedef struct SNDFILE_tag SNDFILE


Enumeration Type Documentation

anonymous enum

Enumerator:
SF_FORMAT_WAV 
SF_FORMAT_AIFF 
SF_FORMAT_AU 
SF_FORMAT_RAW 
SF_FORMAT_PAF 
SF_FORMAT_SVX 
SF_FORMAT_NIST 
SF_FORMAT_VOC 
SF_FORMAT_IRCAM 
SF_FORMAT_W64 
SF_FORMAT_MAT4 
SF_FORMAT_MAT5 
SF_FORMAT_PVF 
SF_FORMAT_XI 
SF_FORMAT_HTK 
SF_FORMAT_SDS 
SF_FORMAT_AVR 
SF_FORMAT_WAVEX 
SF_FORMAT_PCM_S8 
SF_FORMAT_PCM_16 
SF_FORMAT_PCM_24 
SF_FORMAT_PCM_32 
SF_FORMAT_PCM_U8 
SF_FORMAT_FLOAT 
SF_FORMAT_DOUBLE 
SF_FORMAT_ULAW 
SF_FORMAT_ALAW 
SF_FORMAT_IMA_ADPCM 
SF_FORMAT_MS_ADPCM 
SF_FORMAT_GSM610 
SF_FORMAT_VOX_ADPCM 
SF_FORMAT_G721_32 
SF_FORMAT_G723_24 
SF_FORMAT_G723_40 
SF_FORMAT_DWVW_12 
SF_FORMAT_DWVW_16 
SF_FORMAT_DWVW_24 
SF_FORMAT_DWVW_N 
SF_FORMAT_DPCM_8 
SF_FORMAT_DPCM_16 
SF_ENDIAN_FILE 
SF_ENDIAN_LITTLE 
SF_ENDIAN_BIG 
SF_ENDIAN_CPU 
SF_FORMAT_SUBMASK 
SF_FORMAT_TYPEMASK 
SF_FORMAT_ENDMASK 

anonymous enum

Enumerator:
SFC_GET_LIB_VERSION 
SFC_GET_LOG_INFO 
SFC_GET_NORM_DOUBLE 
SFC_GET_NORM_FLOAT 
SFC_SET_NORM_DOUBLE 
SFC_SET_NORM_FLOAT 
SFC_GET_SIMPLE_FORMAT_COUNT 
SFC_GET_SIMPLE_FORMAT 
SFC_GET_FORMAT_INFO 
SFC_GET_FORMAT_MAJOR_COUNT 
SFC_GET_FORMAT_MAJOR 
SFC_GET_FORMAT_SUBTYPE_COUNT 
SFC_GET_FORMAT_SUBTYPE 
SFC_CALC_SIGNAL_MAX 
SFC_CALC_NORM_SIGNAL_MAX 
SFC_CALC_MAX_ALL_CHANNELS 
SFC_CALC_NORM_MAX_ALL_CHANNELS 
SFC_SET_ADD_PEAK_CHUNK 
SFC_UPDATE_HEADER_NOW 
SFC_SET_UPDATE_HEADER_AUTO 
SFC_FILE_TRUNCATE 
SFC_SET_RAW_START_OFFSET 
SFC_SET_DITHER_ON_WRITE 
SFC_SET_DITHER_ON_READ 
SFC_GET_DITHER_INFO_COUNT 
SFC_GET_DITHER_INFO 
SFC_GET_EMBED_FILE_INFO 
SFC_SET_CLIPPING 
SFC_GET_CLIPPING 
SFC_GET_INSTRUMENT 
SFC_SET_INSTRUMENT 
SFC_TEST_IEEE_FLOAT_REPLACE 
SFC_SET_ADD_DITHER_ON_WRITE 
SFC_SET_ADD_DITHER_ON_READ 

anonymous enum

Enumerator:
SF_STR_TITLE 
SF_STR_COPYRIGHT 
SF_STR_SOFTWARE 
SF_STR_ARTIST 
SF_STR_COMMENT 
SF_STR_DATE 

anonymous enum

Enumerator:
SF_FALSE 
SF_TRUE 
SFM_READ 
SFM_WRITE 
SFM_RDWR 

anonymous enum

Enumerator:
SF_ERR_NO_ERROR 
SF_ERR_UNRECOGNISED_FORMAT 
SF_ERR_SYSTEM 

anonymous enum

Enumerator:
SFD_DEFAULT_LEVEL 
SFD_CUSTOM_LEVEL 
SFD_NO_DITHER 
SFD_WHITE 
SFD_TRIANGULAR_PDF 

anonymous enum

Enumerator:
SF_LOOP_NONE 
SF_LOOP_FORWARD 
SF_LOOP_BACKWARD 


Function Documentation

int sf_close ( SNDFILE sndfile  ) 

int sf_command ( SNDFILE sndfile,
int  command,
void *  data,
int  datasize 
)

int sf_error ( SNDFILE sndfile  ) 

const char* sf_error_number ( int  errnum  ) 

int sf_error_str ( SNDFILE sndfile,
char *  str,
size_t  len 
)

int sf_format_check ( const SF_INFO info  ) 

const char* sf_get_string ( SNDFILE sndfile,
int  str_type 
)

SNDFILE* sf_open ( const char *  path,
int  mode,
SF_INFO sfinfo 
)

SNDFILE* sf_open_fd ( int  fd,
int  mode,
SF_INFO sfinfo,
int  close_desc 
)

int sf_perror ( SNDFILE sndfile  ) 

sf_count_t sf_read_double ( SNDFILE sndfile,
double *  ptr,
sf_count_t  items 
)

sf_count_t sf_read_float ( SNDFILE sndfile,
float *  ptr,
sf_count_t  items 
)

sf_count_t sf_read_int ( SNDFILE sndfile,
int *  ptr,
sf_count_t  items 
)

sf_count_t sf_read_raw ( SNDFILE sndfile,
void *  ptr,
sf_count_t  bytes 
)

sf_count_t sf_read_short ( SNDFILE sndfile,
short ptr,
sf_count_t  items 
)

sf_count_t sf_readf_double ( SNDFILE sndfile,
double *  ptr,
sf_count_t  frames 
)

sf_count_t sf_readf_float ( SNDFILE sndfile,
float *  ptr,
sf_count_t  frames 
)

sf_count_t sf_readf_int ( SNDFILE sndfile,
int *  ptr,
sf_count_t  frames 
)

sf_count_t sf_readf_short ( SNDFILE sndfile,
short ptr,
sf_count_t  frames 
)

sf_count_t sf_seek ( SNDFILE sndfile,
sf_count_t  frames,
int  whence 
)

int sf_set_string ( SNDFILE sndfile,
int  str_type,
const char *  str 
)

const char* sf_strerror ( SNDFILE sndfile  ) 

sf_count_t sf_write_double ( SNDFILE sndfile,
double *  ptr,
sf_count_t  items 
)

sf_count_t sf_write_float ( SNDFILE sndfile,
float *  ptr,
sf_count_t  items 
)

sf_count_t sf_write_int ( SNDFILE sndfile,
int *  ptr,
sf_count_t  items 
)

sf_count_t sf_write_raw ( SNDFILE sndfile,
void *  ptr,
sf_count_t  bytes 
)

sf_count_t sf_write_short ( SNDFILE sndfile,
short ptr,
sf_count_t  items 
)

sf_count_t sf_writef_double ( SNDFILE sndfile,
double *  ptr,
sf_count_t  frames 
)

sf_count_t sf_writef_float ( SNDFILE sndfile,
float *  ptr,
sf_count_t  frames 
)

sf_count_t sf_writef_int ( SNDFILE sndfile,
int *  ptr,
sf_count_t  frames 
)

sf_count_t sf_writef_short ( SNDFILE sndfile,
short ptr,
sf_count_t  frames 
)


Generated on Wed Jan 28 19:15:34 2009 for VEMUS by  doxygen 1.5.8