36 #include <sys/types.h> 955 #define SF_STR_FIRST SF_STR_TITLE 958 #define SF_STR_LAST SF_STR_GENRE 1026 SF_CHANNEL_MAP_INVALID = 0,
1027 SF_CHANNEL_MAP_MONO = 1,
1028 SF_CHANNEL_MAP_LEFT,
1029 SF_CHANNEL_MAP_RIGHT,
1030 SF_CHANNEL_MAP_CENTER,
1031 SF_CHANNEL_MAP_FRONT_LEFT,
1032 SF_CHANNEL_MAP_FRONT_RIGHT,
1033 SF_CHANNEL_MAP_FRONT_CENTER,
1034 SF_CHANNEL_MAP_REAR_CENTER,
1035 SF_CHANNEL_MAP_REAR_LEFT,
1036 SF_CHANNEL_MAP_REAR_RIGHT,
1038 SF_CHANNEL_MAP_FRONT_LEFT_OF_CENTER,
1039 SF_CHANNEL_MAP_FRONT_RIGHT_OF_CENTER,
1040 SF_CHANNEL_MAP_SIDE_LEFT,
1041 SF_CHANNEL_MAP_SIDE_RIGHT,
1042 SF_CHANNEL_MAP_TOP_CENTER,
1043 SF_CHANNEL_MAP_TOP_FRONT_LEFT,
1044 SF_CHANNEL_MAP_TOP_FRONT_RIGHT,
1045 SF_CHANNEL_MAP_TOP_FRONT_CENTER,
1046 SF_CHANNEL_MAP_TOP_REAR_LEFT,
1047 SF_CHANNEL_MAP_TOP_REAR_RIGHT,
1048 SF_CHANNEL_MAP_TOP_REAR_CENTER,
1050 SF_CHANNEL_MAP_AMBISONIC_B_W,
1051 SF_CHANNEL_MAP_AMBISONIC_B_X,
1052 SF_CHANNEL_MAP_AMBISONIC_B_Y,
1053 SF_CHANNEL_MAP_AMBISONIC_B_Z,
1082 #define SF_COUNT_MAX INT64_MAX 1169 int32_t chunk_start;
1170 int32_t block_start;
1171 uint32_t sample_offset;
1179 #define SF_CUES_VAR(count) \ 1182 uint32_t cue_count; \ 1183 SF_CUE_POINT cue_points[count]; \ 1211 char basenote, detune;
1212 char velocity_lo, velocity_hi;
1213 char key_lo, key_hi;
1258 #define SF_BROADCAST_INFO_VAR(coding_hist_size) \ 1261 char description[256]; \ 1262 char originator[32]; \ 1263 char originator_reference[32]; \ 1264 char origination_date[10]; \ 1265 char origination_time[8]; \ 1266 uint32_t time_reference_low; \ 1267 uint32_t time_reference_high; \ 1270 char reserved[190]; \ 1271 uint32_t coding_history_size; \ 1272 char coding_history[coding_hist_size]; \ 1295 #define SF_CART_INFO_VAR(p_tag_text_size) \ 1302 char client_id[64]; \ 1303 char category[64]; \ 1304 char classification[64]; \ 1306 char start_date[10]; \ 1307 char start_time[8]; \ 1308 char end_date[10]; \ 1310 char producer_app_id[64]; \ 1311 char producer_app_version[64]; \ 1312 char user_def[64]; \ 1313 int32_t level_reference; \ 1314 SF_CART_TIMER post_timers[8]; \ 1315 char reserved[276]; \ 1317 uint32_t tag_text_size; \ 1318 char tag_text[p_tag_text_size]; \ 1364 typedef sf_count_t (*
sf_vio_seek)(sf_count_t offset,
int whence,
void *user_data);
1375 typedef sf_count_t (*
sf_vio_read)(
void *ptr, sf_count_t count,
void *user_data);
1387 typedef sf_count_t (*
sf_vio_write)(const
void *ptr, sf_count_t count,
void *user_data);
1463 #include "sndfile2k_export.h" 1723 SNDFILE2K_EXPORT
int sf_command(
SNDFILE *sndfile,
int command,
void *data,
int datasize);
1853 SNDFILE2K_EXPORT sf_count_t
sf_read_raw(
SNDFILE *sndfile,
void *ptr, sf_count_t bytes);
1866 SNDFILE2K_EXPORT sf_count_t
sf_write_raw(
SNDFILE *sndfile,
const void *ptr, sf_count_t bytes);
2016 SNDFILE2K_EXPORT sf_count_t
sf_read_int(
SNDFILE *sndfile,
int *ptr, sf_count_t items);
2025 SNDFILE2K_EXPORT sf_count_t
sf_write_int(
SNDFILE *sndfile,
const int *ptr, sf_count_t items);
2088 #if (defined(_WIN32) || defined(__CYGWIN__)) 2109 SNDFILE2K_EXPORT
SNDFILE *sf_wchar_open(
const wchar_t *wpath,
int mode,
SF_INFO *sfinfo);
Gets the internal per-file operation log.
Definition: sndfile2k.h:221
SF_LOOP_MODE
Defines loop mode constants.
Definition: sndfile2k.h:1194
Calculates the measured maximum signal value.
Definition: sndfile2k.h:460
Custom level.
Definition: sndfile2k.h:1128
Sets the channel mapping info.
Definition: sndfile2k.h:777
Calculates the peak value (ie a single number) for each channel.
Definition: sndfile2k.h:480
typedef SF_BROADCAST_INFO_VAR(256) SF_BROADCAST_INFO
Defines Broadcast struct with coding_history field of 256 bytes.
int seekable
Indicates that sound file is seekable if set to non-zero value.
Definition: sndfile2k.h:1099
None.
Definition: sndfile2k.h:1197
sf_vio_seek seek
Pointer to a user defined seek function.
Definition: sndfile2k.h:1444
Gets the number of major formats.
Definition: sndfile2k.h:398
Sets the Broadcast Chunk info.
Definition: sndfile2k.h:755
#define SF_CART_INFO_VAR(p_tag_text_size)
Defines CART timer struct with tag_text of desired size.
Definition: sndfile2k.h:1295
Software.
Definition: sndfile2k.h:936
SNDFILE2K_EXPORT sf_count_t sf_writef_float(SNDFILE *sndfile, const float *ptr, sf_count_t frames)
Writes float (32-bit) frames to file.
SNDFILE2K_EXPORT sf_count_t sf_read_short(SNDFILE *sndfile, short *ptr, sf_count_t items)
Reads short (16-bit) samples from file.
Endianness submask.
Definition: sndfile2k.h:192
Berkeley/IRCAM/CARL.
Definition: sndfile2k.h:80
int64_t sf_count_t
Represents file offset type.
Definition: sndfile2k.h:1078
Sets the current double normalization mode.
Definition: sndfile2k.h:280
SF_DITHER_TYPE
Defines dither type constants.
Definition: sndfile2k.h:1123
Contains CUE marker information.
Definition: sndfile2k.h:1164
Supported file format but unsupported encoding.
Definition: sndfile2k.h:1018
SNDFILE2K_EXPORT int sf_error(SNDFILE *sndfile)
Returns the current error code for the given SNDFILE.
SNDFILE2K_EXPORT sf_count_t sf_writef_short(SNDFILE *sndfile, const short *ptr, sf_count_t frames)
Writes short (16-bit) frames to file.
Determines if raw data read using sf_read_raw() needs to be end swapped on the host CPU...
Definition: sndfile2k.h:788
No error (success)
Definition: sndfile2k.h:1010
SF_BOOL
Defines boolean constants.
Definition: sndfile2k.h:963
sf_count_t length
Length of embedded file.
Definition: sndfile2k.h:1159
sf_ref_callback ref
Pointer to a user defined function that increases reference count.
Definition: sndfile2k.h:1458
Gets information about a subformat.
Definition: sndfile2k.h:450
SNDFILE2K_EXPORT int sf_get_chunk_data(const SF_CHUNK_ITERATOR *it, SF_CHUNK_INFO *chunk_info)
Gets the specified chunk data.
Force big endian-ness.
Definition: sndfile2k.h:184
Akai MPC 2000 sampler.
Definition: sndfile2k.h:110
const char * extension
Format file extension.
Definition: sndfile2k.h:1118
sf_count_t(* sf_vio_get_filelen)(void *user_data)
Type of user defined function that returns file size.
Definition: sndfile2k.h:1348
sf_count_t offset
Embedded file offset from start of container.
Definition: sndfile2k.h:1157
Read mode.
Definition: sndfile2k.h:978
Signed 32 bit data.
Definition: sndfile2k.h:123
SNDFILE2K_EXPORT int sf_command(SNDFILE *sndfile, int command, void *data, int datasize)
Gets or sets parameters of library or sound file.
Backward.
Definition: sndfile2k.h:1201
Gets instrument information.
Definition: sndfile2k.h:709
Apple Lossless Audio Codec (24 bit)
Definition: sndfile2k.h:173
Used when a file is open for write, this command will cause the file header to be updated after each ...
Definition: sndfile2k.h:572
False.
Definition: sndfile2k.h:966
SF_SEEK_MODE
Defines file seek mode constants.
Definition: sndfile2k.h:1745
SNDFILE2K_EXPORT sf_count_t sf_write_float(SNDFILE *sndfile, const float *ptr, sf_count_t items)
Writes float (32-bit) samples to file.
SNDFILE2K_EXPORT SNDFILE * sf_open_fd(int fd, int mode, SF_INFO *sfinfo, int close_desc)
Opens sound file using POSIX file descriptor.
B-format.
Definition: sndfile2k.h:994
int channels
The count of channels.
Definition: sndfile2k.h:1093
Amiga IFF / SVX8 / SV16 format.
Definition: sndfile2k.h:74
Force little endian-ness.
Definition: sndfile2k.h:182
Seek from end.
Definition: sndfile2k.h:1752
Sun/NeXT AU format (big endian)
Definition: sndfile2k.h:68
16 bit differential PCM (XI only)
Definition: sndfile2k.h:165
unsigned datalen
The size of the chunk identifier.
Definition: sndfile2k.h:2133
Read/write mode.
Definition: sndfile2k.h:982
SNDFILE2K_EXPORT sf_count_t sf_write_short(SNDFILE *sndfile, const short *ptr, sf_count_t items)
Writes short (16-bit) samples to file.
Gets the channel mapping info.
Definition: sndfile2k.h:768
sf_count_t(* sf_vio_read)(void *ptr, sf_count_t count, void *user_data)
Type of user defined read function.
Definition: sndfile2k.h:1375
12 bit Delta Width Variable Word encoding
Definition: sndfile2k.h:155
Contains instrument information.
Definition: sndfile2k.h:1208
16 bit Delta Width Variable Word encoding
Definition: sndfile2k.h:157
Triangular probability density function Dither.
Definition: sndfile2k.h:1135
Fasttracker 2 Extended Instrument.
Definition: sndfile2k.h:90
RF64 WAV file.
Definition: sndfile2k.h:112
Controls dithering on write.
Definition: sndfile2k.h:608
Sets compression level.
Definition: sndfile2k.h:874
Album.
Definition: sndfile2k.h:944
Xiph Vorbis encoding.
Definition: sndfile2k.h:167
24kbs NMS G721-variant encoding
Definition: sndfile2k.h:145
SF_CHANNEL_MAP
Defines channel map constants.
Definition: sndfile2k.h:1024
sf_vio_get_filelen get_filelen
Pointer to a used defined function that returns file size.
Definition: sndfile2k.h:1442
Forward.
Definition: sndfile2k.h:1199
sf_vio_write write
Pointer to a user defined write function.
Definition: sndfile2k.h:1448
SNDFILE2K_EXPORT sf_count_t sf_read_int(SNDFILE *sndfile, int *ptr, sf_count_t items)
Reads integer (32-bit) samples from file.
Contains information about embedded file.
Definition: sndfile2k.h:1154
SF_ERR
Defines public error values.
Definition: sndfile2k.h:1007
SF_COMMAND
Defines command constants for sf_command()
Definition: sndfile2k.h:199
sf_vio_set_filelen set_filelen
Pointer to a user defined function that truncates stream.
Definition: sndfile2k.h:1454
Describes sound file chunk.
Definition: sndfile2k.h:2129
SF_BOOL(* sf_vio_is_pipe)(void *user_data)
Type of user defined function indicates pipe mode.
Definition: sndfile2k.h:1425
Sets/clears the scale factor when integer (short/int) data is written to a file as floating point dat...
Definition: sndfile2k.h:330
SNDFILE2K_EXPORT SNDFILE * sf_open_virtual_ex(SF_VIRTUAL_IO *sfvirtual, int mode, SF_INFO *sfinfo, void *user_data)
Opens sound file using Virtual I/O context.
Sets the GUID of a new WAVEX file to indicate an Ambisonics format.
Definition: sndfile2k.h:807
Gets the file offset and file length of a file enbedded within another larger file.
Definition: sndfile2k.h:641
Signed 8 bit data.
Definition: sndfile2k.h:117
unsigned id_size
The chunk identifier.
Definition: sndfile2k.h:2132
RAW PCM data.
Definition: sndfile2k.h:70
32kbs NMS G721-variant encoding
Definition: sndfile2k.h:147
Sets cue marker information for the file.
Definition: sndfile2k.h:694
SF_AMBISONIC_MODE
Defines Ambisonics format constants.
Definition: sndfile2k.h:989
unsigned long(* sf_ref_callback)(void *user_data)
Type of user defined function that increases reference count.
Definition: sndfile2k.h:1333
Sonic Foundry's 64 bit RIFF/WAV.
Definition: sndfile2k.h:82
Date.
Definition: sndfile2k.h:942
int sections
Unused.
Definition: sndfile2k.h:1097
SNDFILE2K_EXPORT const char * sf_version_string(void)
Returns the library version string.
Contains information about the sound file format.
Definition: sndfile2k.h:1111
void(* sf_unref_callback)(void *user_data)
Type of user defined function that decreases reference count.
Definition: sndfile2k.h:1338
A-Law encoded.
Definition: sndfile2k.h:133
SNDFILE2K_EXPORT int sf_set_chunk(SNDFILE *sndfile, const SF_CHUNK_INFO *chunk_info)
Sets the specified chunk info.
Portable Voice Format.
Definition: sndfile2k.h:88
Retrieves information about a simple format.
Definition: sndfile2k.h:357
Switches the code for adding the PEAK chunk to WAV and AIFF files on or off.
Definition: sndfile2k.h:531
SNDFILE2K_EXPORT const char * sf_strerror(SNDFILE *sndfile)
Returns textual description of the current error code for the given SNDFILE.
SNDFILE2K_EXPORT SNDFILE * sf_open(const char *path, int mode, SF_INFO *sfinfo)
Opens the specified sound file using path.
SF_FILEMODE
Defines the kind of file access.
Definition: sndfile2k.h:975
Gets the number of subformats.
Definition: sndfile2k.h:427
SNDFILE2K_EXPORT int sf_set_string(SNDFILE *sndfile, int str_type, const char *str)
Sets string field for given sound file.
Retrieves current clipping setting.
Definition: sndfile2k.h:662
Signed 24 bit data.
Definition: sndfile2k.h:121
Track number.
Definition: sndfile2k.h:948
int format
Sound file format characterictics, see SF_FORMAT for details.
Definition: sndfile2k.h:1114
SNDFILE2K_EXPORT sf_count_t sf_write_double(SNDFILE *sndfile, const double *ptr, sf_count_t items)
Writes double (64-bit) samples to file.
int samplerate
The sampling rate in Hz.
Definition: sndfile2k.h:1091
Seek from beginning.
Definition: sndfile2k.h:1748
Truncates a file open for write or for read/write.
Definition: sndfile2k.h:588
SNDFILE2K_EXPORT SNDFILE * sf_open_virtual(SF_VIRTUAL_IO *sfvirtual, int mode, SF_INFO *sfinfo, void *user_data)
Opens sound file using Virtual I/O context.
void * data
The size of that data.
Definition: sndfile2k.h:2134
Matlab (tm) V5.0 / GNU Octave 2.1.
Definition: sndfile2k.h:86
Write mode.
Definition: sndfile2k.h:980
8 bit differential PCM (XI only)
Definition: sndfile2k.h:163
Apple Lossless Audio Codec (20 bit)
Definition: sndfile2k.h:171
Deprecated.
Definition: sndfile2k.h:920
Signed 16 bit data.
Definition: sndfile2k.h:119
SNDFILE2K_EXPORT sf_count_t sf_write_raw(SNDFILE *sndfile, const void *ptr, sf_count_t bytes)
Writes raw bytes to sound file.
double level
Dither level.
Definition: sndfile2k.h:1145
Sound Designer 2.
Definition: sndfile2k.h:100
Supported file format but file is malformed.
Definition: sndfile2k.h:1016
Default file endian-ness.
Definition: sndfile2k.h:180
Calculates the normalised peak for each channel.
Definition: sndfile2k.h:490
int type
Dither type, see SF_DITHER_TYPE for details.
Definition: sndfile2k.h:1143
SNDFILE2K_EXPORT sf_count_t sf_readf_int(SNDFILE *sndfile, int *ptr, sf_count_t frames)
Reads integer (32-bit) frames from file.
Minor format submask.
Definition: sndfile2k.h:190
32kbs G721 ADPCM encoding
Definition: sndfile2k.h:149
N bit Delta Width Variable Word encoding.
Definition: sndfile2k.h:161
None.
Definition: sndfile2k.h:992
Sets instrument information.
Definition: sndfile2k.h:719
SNDFILE2K_EXPORT int sf_close(SNDFILE *sndfile)
Closes the SNDFILE object.
Controls auto downgrade from RF64 to WAV.
Definition: sndfile2k.h:846
Default level.
Definition: sndfile2k.h:1126
IMA ADPCM.
Definition: sndfile2k.h:135
Xiph OGG container.
Definition: sndfile2k.h:108
GSM 6.10 encoding.
Definition: sndfile2k.h:139
24 bit Delta Width Variable Word encoding
Definition: sndfile2k.h:159
Artist.
Definition: sndfile2k.h:938
Gets the current double normalization mode.
Definition: sndfile2k.h:242
Apple Lossless Audio Codec (16 bit)
Definition: sndfile2k.h:169
Contains information about dithering.
Definition: sndfile2k.h:1140
Contanins information about CART timer.
Definition: sndfile2k.h:1285
Gets the Cart Chunk info.
Definition: sndfile2k.h:890
Turns on/off automatic clipping when doing floating point to integer conversion.
Definition: sndfile2k.h:652
int(* sf_vio_set_filelen)(void *user_data, sf_count_t len)
Type of user defined function truncates stream size.
Definition: sndfile2k.h:1415
Microsoft ADPCM.
Definition: sndfile2k.h:137
Gets SF_INFO of given sound file.
Definition: sndfile2k.h:231
24kbs G723 ADPCM encoding
Definition: sndfile2k.h:151
Seek from current position.
Definition: sndfile2k.h:1750
SNDFILE2K_EXPORT void sf_write_sync(SNDFILE *sndfile)
Forces writing of data to disk.
Core Audio File format.
Definition: sndfile2k.h:104
Format not recognised.
Definition: sndfile2k.h:1012
Midi Sample Dump Standard.
Definition: sndfile2k.h:94
SNDFILE2K_EXPORT sf_count_t sf_writef_int(SNDFILE *sndfile, const int *ptr, sf_count_t frames)
Writes integer (32-bit) frames to file.
sf_count_t(* sf_vio_seek)(sf_count_t offset, int whence, void *user_data)
Type of user defined seek function.
Definition: sndfile2k.h:1364
SNDFILE2K_EXPORT sf_count_t sf_read_raw(SNDFILE *sndfile, void *ptr, sf_count_t bytes)
Read raw bytes from sound file.
Internal, do not use.
Definition: sndfile2k.h:909
SNDFILE2K_EXPORT sf_count_t sf_readf_short(SNDFILE *sndfile, short *ptr, sf_count_t frames)
Reads short (16-bit) frames from file.
Gets the peak value for each channel as stored in the file header.
Definition: sndfile2k.h:512
OKI / Dialogix ADPCM.
Definition: sndfile2k.h:141
FLAC lossless file format.
Definition: sndfile2k.h:102
sf_vio_flush flush
Pointer to a user defined function that forces the writing of data to disk.
Definition: sndfile2k.h:1452
Apple Lossless Audio Codec (32 bit)
Definition: sndfile2k.h:175
sf_count_t(* sf_vio_tell)(void *user_data)
Type of user defined function that returns current position in file.
Definition: sndfile2k.h:1396
Comment.
Definition: sndfile2k.h:940
SNDFILE2K_EXPORT sf_count_t sf_readf_double(SNDFILE *sndfile, double *ptr, sf_count_t frames)
Reads double (64-bit) frames from file.
SF_STR_FIELD
Defines field type constants.
Definition: sndfile2k.h:929
Defines virtual file I/O context.
Definition: sndfile2k.h:1439
Gets the current float normalization mode.
Definition: sndfile2k.h:253
SNDFILE2K_EXPORT sf_count_t sf_write_int(SNDFILE *sndfile, const int *ptr, sf_count_t items)
Writes integer (32-bit) samples to file.
SNDFILE2K_EXPORT sf_count_t sf_read_double(SNDFILE *sndfile, double *ptr, sf_count_t items)
Reads double (64-bit) samples from file.
Sets the Variable Bit Rate encoding quality.
Definition: sndfile2k.h:860
Gets library version string.
Definition: sndfile2k.h:209
Genre.
Definition: sndfile2k.h:950
SNDFILE2K_EXPORT SF_CHUNK_ITERATOR * sf_next_chunk_iterator(SF_CHUNK_ITERATOR *iterator)
Iterates through chunks by incrementing the iterator.
sf_vio_tell tell
Pointer to a user defined function that returns file position.
Definition: sndfile2k.h:1450
Gets the peak value for the file as stored in the file header.
Definition: sndfile2k.h:501
True.
Definition: sndfile2k.h:968
Forces update of the file header to reflect the data written so far when a file is open for write...
Definition: sndfile2k.h:558
Title.
Definition: sndfile2k.h:932
int format
Combination of major and minor format flags. See SF_FORMAT for details.
Definition: sndfile2k.h:1095
SNDFILE2K_EXPORT sf_count_t sf_readf_float(SNDFILE *sndfile, float *ptr, sf_count_t frames)
Reads float (32-bit) frames from file.
SF_FORMAT
Set of format bit flags.
Definition: sndfile2k.h:59
Gets the Broadcast Chunk info.
Definition: sndfile2k.h:743
struct sf_private_tag SNDFILE
Represents opened sound file.
Definition: sndfile2k.h:1072
Sets the current float normalization mode.
Definition: sndfile2k.h:306
White.
Definition: sndfile2k.h:1133
Not used.
Definition: sndfile2k.h:537
SNDFILE2K_EXPORT const char * sf_get_string(SNDFILE *sndfile, int str_type)
Gets string field from given sound file.
Sets/clears the scale factor when integer (short/int) data is read from a file containing floating po...
Definition: sndfile2k.h:318
SNDFILE2K_EXPORT sf_count_t sf_read_float(SNDFILE *sndfile, float *ptr, sf_count_t items)
Reads float (32-bit) samples from file.
Sets loop information.
Definition: sndfile2k.h:730
const char * name
Dither name.
Definition: sndfile2k.h:1147
Audio Visual Research.
Definition: sndfile2k.h:96
void(* sf_vio_flush)(void *user_data)
Type of user defined function that forces the writing of data to disk.
Definition: sndfile2k.h:1405
Gets the cue marker count.
Definition: sndfile2k.h:673
struct SF_CHUNK_ITERATOR SF_CHUNK_ITERATOR
An opaque structure to an iterator over the all chunks of a given id.
Definition: sndfile2k.h:2156
SNDFILE2K_EXPORT sf_count_t sf_seek(SNDFILE *sndfile, sf_count_t frames, int whence)
Changes position of sound file.
sf_vio_is_pipe is_pipe
Pointer to a user defined function that indicates pipe mode.
Definition: sndfile2k.h:1456
Controls dithering on read.
Definition: sndfile2k.h:618
Changes the data start offset for files opened up as SF_FORMAT_RAW.
Definition: sndfile2k.h:598
const char * name
Format description.
Definition: sndfile2k.h:1116
Retrieves the number of simple formats supported by libsndfile.
Definition: sndfile2k.h:340
64 bit float data
Definition: sndfile2k.h:129
License.
Definition: sndfile2k.h:946
sf_unref_callback unref
Pointer to a user defined function that decreases reference count.
Definition: sndfile2k.h:1460
Sphere NIST format.
Definition: sndfile2k.h:76
Alternating.
Definition: sndfile2k.h:1203
Matlab (tm) V4.2 / GNU Octave 2.0.
Definition: sndfile2k.h:84
SNDFILE2K_EXPORT const char * sf_error_number(int errnum)
Returns text description of error code.
sf_count_t frames
The count of frames.
Definition: sndfile2k.h:1089
Gets information about a major format type.
Definition: sndfile2k.h:417
#define SF_CUES_VAR(count)
Defines struct containing desired count of CUE markers.
Definition: sndfile2k.h:1179
Deprecated.
Definition: sndfile2k.h:915
Gets cue marker information from file.
Definition: sndfile2k.h:684
Contains information about format of sound file.
Definition: sndfile2k.h:1086
sf_count_t(* sf_vio_write)(const void *ptr, sf_count_t count, void *user_data)
Type of user defined write function.
Definition: sndfile2k.h:1387
Copyright.
Definition: sndfile2k.h:934
Apple/SGI AIFF format (big endian)
Definition: sndfile2k.h:66
System error.
Definition: sndfile2k.h:1014
No dither.
Definition: sndfile2k.h:1131
HMM Tool Kit format.
Definition: sndfile2k.h:92
SNDFILE2K_EXPORT int sf_current_byterate(SNDFILE *sndfile)
Returns current byterate of the file.
Microsoft WAV format (little endian default)
Definition: sndfile2k.h:64
Force CPU endian-ness.
Definition: sndfile2k.h:186
Major format submask.
Definition: sndfile2k.h:188
Defines loop information.
Definition: sndfile2k.h:1227
Not used.
Definition: sndfile2k.h:630
VOC files.
Definition: sndfile2k.h:78
SNDFILE2K_EXPORT int sf_format_check(const SF_INFO *info)
Checks correctness of SF_INFO::format field.
Unsigned 8 bit data (WAV and RAW only)
Definition: sndfile2k.h:125
SNDFILE2K_EXPORT int sf_error_str(SNDFILE *sndfile, char *str, size_t len)
Fills provided buffer with text description of error code for the given SNDFILE.
16kbs NMS G721-variant encoding
Definition: sndfile2k.h:143
40kbs G723 ADPCM encoding
Definition: sndfile2k.h:153
SNDFILE2K_EXPORT SF_CHUNK_ITERATOR * sf_get_chunk_iterator(SNDFILE *sndfile, const SF_CHUNK_INFO *chunk_info)
Gets an iterator for all chunks matching chunk_info.
Not used.
Definition: sndfile2k.h:624
MS WAVE with WAVEFORMATEX.
Definition: sndfile2k.h:98
U-Law encoded.
Definition: sndfile2k.h:131
SNDFILE2K_EXPORT int sf_perror(SNDFILE *sndfile)
Returns internal error code for the given SNDFILE.
Calculates the measured normalised maximum signal value.
Definition: sndfile2k.h:470
sf_vio_read read
Pointer to a user defined read function.
Definition: sndfile2k.h:1446
Ensoniq PARIS file format.
Definition: sndfile2k.h:72
SNDFILE2K_EXPORT sf_count_t sf_writef_double(SNDFILE *sndfile, const double *ptr, sf_count_t frames)
Writes double (64-bit) frames to file.
Gets the Cart Chunk info.
Definition: sndfile2k.h:905
SNDFILE2K_EXPORT int sf_get_chunk_size(const SF_CHUNK_ITERATOR *it, SF_CHUNK_INFO *chunk_info)
Gets the size of the specified chunk.
32 bit float data
Definition: sndfile2k.h:127
Retrieves information about a major or subtype format.
Definition: sndfile2k.h:388
Tests if the current file has the GUID of a WAVEX file for any of the Ambisonic formats.
Definition: sndfile2k.h:824
Psion WVE format.
Definition: sndfile2k.h:106