summaryrefslogtreecommitdiff
path: root/src/c_asndfile_command.h
blob: 41738f546831ff9ed3aef94cc459813e58d6879a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef ASND_COMMAND_GUARD
#define ASND_COMMAND_GUARD

#include <sndfile.h>
#include "c_asndfile.h"


extern const int sfc_get_lib_version;
extern const int sfc_get_log_info;
extern const int sfc_calc_signal_max;
extern const int sfc_calc_norm_signal_max;
extern const int sfc_calc_max_all_channels;
extern const int sfc_calc_norm_max_all_channels;
extern const int sfc_get_signal_max;
extern const int sfc_get_max_all_channels;
extern const int sfc_set_norm_float;
extern const int sfc_set_norm_double;
extern const int sfc_get_norm_float;
extern const int sfc_get_norm_double;
extern const int sfc_set_scale_float_int_read;
extern const int sfc_set_scale_int_float_write;
extern const int sfc_get_simple_format_count;
extern const int sfc_get_simple_format;
extern const int sfc_get_format_info;
extern const int sfc_get_format_major_count;
extern const int sfc_get_format_major;
extern const int sfc_get_format_subtype_count;
extern const int sfc_get_format_subtype;
extern const int sfc_set_add_peak_chunk;
extern const int sfc_update_header_now;
extern const int sfc_set_update_header_auto;
extern const int sfc_set_clipping;
extern const int sfc_get_clipping;
extern const int sfc_wavex_get_ambisonic;
extern const int sfc_wavex_set_ambisonic;
extern const int sfc_set_vbr_encoding_quality;
extern const int sfc_set_ogg_page_latency_ms;
extern const int sfc_get_ogg_stream_serialno;
extern const int sfc_set_compression_level;
extern const int sfc_raw_data_needs_endswap;
extern const int sfc_get_broadcast_info;
extern const int sfc_set_broadcast_info;
extern const int sfc_get_channel_map_info;
extern const int sfc_set_channel_map_info;
extern const int sfc_get_cart_info;
extern const int sfc_set_cart_info;
extern const int sfc_get_loop_info;
extern const int sfc_get_instrument;
extern const int sfc_set_instrument;
extern const int sfc_get_cue_count;
extern const int sfc_get_cue;
extern const int sfc_set_cue;
extern const int sfc_rf64_auto_downgrade;
extern const int sfc_get_original_samplerate;
extern const int sfc_set_original_samplerate;
extern const int sfc_get_bitrate_mode;
extern const int sfc_set_bitrate_mode;

extern const int sf_ambisonic_none;
extern const int sf_ambisonic_b_format;

extern const int sf_loop_none;
extern const int sf_loop_forward;
extern const int sf_loop_backward;
extern const int sf_loop_alternating;

extern const int sf_bitrate_mode_constant;
extern const int sf_bitrate_mode_average;
extern const int sf_bitrate_mode_variable;

extern const unsigned int sf_format_typemask;
extern const unsigned int sf_format_submask;
extern const unsigned int sf_format_endmask;


typedef struct {
    int64_t offset;
    int64_t length;
} Asf_Embed;


int asfc_get_current_sf_info(SNDFILE * sndfile, Asf_Info * sfinfo);
int asfc_file_truncate(SNDFILE * sndfile, int64_t pos);
int asfc_set_raw_start_offset(SNDFILE * sndfile, int64_t pos);
int asfc_get_embed_file_info(SNDFILE * sndfile, Asf_Embed * sfembed);


#endif