ardour
Functions | Variables
sndfile_helpers.cc File Reference
#include <strings.h>
#include <map>
#include <sndfile.h>
#include "ardour/sndfile_helpers.h"
#include "i18n.h"

Go to the source code of this file.

Functions

int sndfile_header_format_by_index (int index)
 
int sndfile_bitdepth_format_by_index (int index)
 
int sndfile_endian_format_by_index (int index)
 
int sndfile_data_width (int format)
 
string sndfile_major_format (int format)
 
string sndfile_minor_format (int format)
 

Variables

const char *const sndfile_header_formats_strings [SNDFILE_HEADER_FORMATS+1]
 
const char *const sndfile_file_endings_strings [SNDFILE_HEADER_FORMATS+1]
 
int sndfile_header_formats [SNDFILE_HEADER_FORMATS]
 
const char *const sndfile_bitdepth_formats_strings [SNDFILE_BITDEPTH_FORMATS+1]
 
int sndfile_bitdepth_formats [SNDFILE_BITDEPTH_FORMATS]
 
const char *const sndfile_endian_formats_strings [SNDFILE_ENDIAN_FORMATS+1]
 
int sndfile_endian_formats [SNDFILE_ENDIAN_FORMATS]
 

Function Documentation

int sndfile_bitdepth_format_by_index ( int  index)

Definition at line 103 of file sndfile_helpers.cc.

int sndfile_data_width ( int  format)

Definition at line 121 of file sndfile_helpers.cc.

int sndfile_endian_format_by_index ( int  index)

Definition at line 112 of file sndfile_helpers.cc.

int sndfile_header_format_by_index ( int  index)

Definition at line 94 of file sndfile_helpers.cc.

string sndfile_major_format ( int  format)

Definition at line 144 of file sndfile_helpers.cc.

string sndfile_minor_format ( int  format)

Definition at line 179 of file sndfile_helpers.cc.

Variable Documentation

int sndfile_bitdepth_formats[SNDFILE_BITDEPTH_FORMATS]
Initial value:
= {
SF_FORMAT_PCM_16,
SF_FORMAT_PCM_24,
SF_FORMAT_PCM_32,
SF_FORMAT_PCM_S8,
SF_FORMAT_FLOAT
}

Definition at line 74 of file sndfile_helpers.cc.

const char* const sndfile_bitdepth_formats_strings[SNDFILE_BITDEPTH_FORMATS+1]
Initial value:
= {
N_("Signed 16 bit PCM"),
N_("Signed 24 bit PCM"),
N_("Signed 32 bit PCM"),
N_("Signed 8 bit PCM"),
N_("32 bit float"),
0
}
#define N_(Text)
Definition: i18n.h:12

Definition at line 65 of file sndfile_helpers.cc.

int sndfile_endian_formats[SNDFILE_ENDIAN_FORMATS]
Initial value:
= {
SF_ENDIAN_LITTLE,
SF_ENDIAN_BIG
}

Definition at line 88 of file sndfile_helpers.cc.

const char* const sndfile_endian_formats_strings[SNDFILE_ENDIAN_FORMATS+1]
Initial value:
= {
N_("Little-endian (Intel)"),
N_("Big-endian (PowerPC)"),
0
}
#define N_(Text)
Definition: i18n.h:12

Definition at line 82 of file sndfile_helpers.cc.

const char* const sndfile_file_endings_strings[SNDFILE_HEADER_FORMATS+1]
Initial value:
= {
N_(".wav"),
N_(".aiff"),
N_(".caf"),
N_(".w64"),
N_(".flac"),
N_(".ogg"),
N_(".raw"),
0
}
#define N_(Text)
Definition: i18n.h:12

Definition at line 44 of file sndfile_helpers.cc.

int sndfile_header_formats[SNDFILE_HEADER_FORMATS]
Initial value:
= {
SF_FORMAT_WAV,
SF_FORMAT_AIFF,
SF_FORMAT_CAF,
SF_FORMAT_W64,
SF_FORMAT_FLAC,
SF_FORMAT_OGG,
SF_FORMAT_RAW
}

Definition at line 55 of file sndfile_helpers.cc.

const char* const sndfile_header_formats_strings[SNDFILE_HEADER_FORMATS+1]
Initial value:
= {
N_("WAV"),
N_("AIFF"),
N_("CAF"),
N_("W64 (64 bit WAV)"),
N_("FLAC"),
N_("Ogg/Vorbis"),
N_("raw (no header)"),
0
}
#define N_(Text)
Definition: i18n.h:12

Definition at line 33 of file sndfile_helpers.cc.