@@ -30,6 +30,7 @@ class wxString;
30
30
/* * @brief Get the number of container formats supported by libsndfile
31
31
*
32
32
* Uses SFC_GET_FORMAT_MAJOR_COUNT in sf_command interface */
33
+ AUDACITY_DLL_API
33
34
int sf_num_headers ();
34
35
35
36
/* * @brief Get the name of a container format from libsndfile
@@ -39,20 +40,25 @@ int sf_num_headers();
39
40
* @param format_num The libsndfile format number for the container format
40
41
* required
41
42
*/
43
+ AUDACITY_DLL_API
42
44
wxString sf_header_index_name (int format_num);
43
45
46
+ AUDACITY_DLL_API
44
47
unsigned int sf_header_index_to_type (int format_num);
45
48
46
49
//
47
50
// enumerating encodings
48
51
//
49
52
/* * @brief Get the number of data encodings libsndfile supports (in any
50
53
* container or none */
54
+ AUDACITY_DLL_API
51
55
int sf_num_encodings ();
52
56
/* * @brief Get the string name of the data encoding of the requested format
53
57
*
54
58
* uses SFC_GET_FORMAT_SUBTYPE */
59
+ AUDACITY_DLL_API
55
60
wxString sf_encoding_index_name (int encoding_num);
61
+ AUDACITY_DLL_API
56
62
unsigned int sf_encoding_index_to_subtype (int encoding_num);
57
63
58
64
//
@@ -64,20 +70,23 @@ unsigned int sf_encoding_index_to_subtype(int encoding_num);
64
70
* then use SFC_GET_FORMAT_INFO to get the description
65
71
* @param format the libsndfile format to get the name for (only the container
66
72
* part is used) */
73
+ AUDACITY_DLL_API
67
74
wxString sf_header_name (int format);
68
75
/* * @brief Get an abbreviated form of the string name of the specified format
69
76
*
70
77
* Do sf_header_name() then truncate the string at the first space in the name
71
78
* to get just the first word of the format name.
72
79
* @param format the libsndfile format to get the name for (only the container
73
80
* part is used) */
81
+ AUDACITY_DLL_API
74
82
wxString sf_header_shortname (int format);
75
83
/* * @brief Get the most common file extension for the given format
76
84
*
77
85
* AND the given format with SF_FORMAT_TYPEMASK to get just the container
78
86
* format, then retrieve the most common extension using SFC_GET_FORMAT_INFO.
79
87
* @param format the libsndfile format to get the name for (only the container
80
88
* part is used) */
89
+ AUDACITY_DLL_API
81
90
wxString sf_header_extension (int format);
82
91
/* * @brief Get the string name of the specified data encoding
83
92
*
@@ -98,13 +107,18 @@ SF_FORMAT_INFO *sf_simple_format(int i);
98
107
// other utility functions
99
108
//
100
109
110
+ AUDACITY_DLL_API
101
111
bool sf_subtype_more_than_16_bits (unsigned int format);
112
+ AUDACITY_DLL_API
102
113
bool sf_subtype_is_integer (unsigned int format);
114
+ AUDACITY_DLL_API
103
115
int sf_subtype_bytes_per_sample (unsigned int format);
104
116
117
+ AUDACITY_DLL_API
105
118
// ! Choose the narrowest value in the sampleFormat enumeration for a given libsndfile format
106
119
sampleFormat sf_subtype_to_effective_format (unsigned int format);
107
120
121
+ AUDACITY_DLL_API
108
122
extern FileExtensions sf_get_all_extensions ();
109
123
110
124
wxString sf_normalize_name (const char *name);
@@ -123,7 +137,7 @@ inline R SFCall(F fun, Args&&... args)
123
137
}
124
138
125
139
// RAII for SNDFILE*
126
- struct SFFileCloser { int operator () (SNDFILE*) const ; };
140
+ struct AUDACITY_DLL_API SFFileCloser { int operator () (SNDFILE*) const ; };
127
141
struct SFFile : public std ::unique_ptr<SNDFILE, ::SFFileCloser>
128
142
{
129
143
SFFile () = default ;
0 commit comments