@@ -109,27 +109,27 @@ nothrow @nogc extern (C)
109
109
ALLEGRO_SAMPLE_INSTANCE * al_create_sample_instance (ALLEGRO_SAMPLE * data);
110
110
void al_destroy_sample_instance (ALLEGRO_SAMPLE_INSTANCE * spl);
111
111
112
- uint al_get_sample_frequency (in ALLEGRO_SAMPLE * spl);
113
- uint al_get_sample_length (in ALLEGRO_SAMPLE * spl);
114
- ALLEGRO_AUDIO_DEPTH al_get_sample_depth (in ALLEGRO_SAMPLE * spl);
115
- ALLEGRO_CHANNEL_CONF al_get_sample_channels (in ALLEGRO_SAMPLE * spl);
116
- void * al_get_sample_data (in ALLEGRO_SAMPLE * spl);
112
+ uint al_get_sample_frequency (const ( ALLEGRO_SAMPLE ) * spl);
113
+ uint al_get_sample_length (const ( ALLEGRO_SAMPLE ) * spl);
114
+ ALLEGRO_AUDIO_DEPTH al_get_sample_depth (const ( ALLEGRO_SAMPLE ) * spl);
115
+ ALLEGRO_CHANNEL_CONF al_get_sample_channels (const ( ALLEGRO_SAMPLE ) * spl);
116
+ void * al_get_sample_data (const ( ALLEGRO_SAMPLE ) * spl);
117
117
118
- uint al_get_sample_instance_frequency (in ALLEGRO_SAMPLE_INSTANCE * spl);
119
- uint al_get_sample_instance_length (in ALLEGRO_SAMPLE_INSTANCE * spl);
120
- uint al_get_sample_instance_position (in ALLEGRO_SAMPLE_INSTANCE * spl);
118
+ uint al_get_sample_instance_frequency (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
119
+ uint al_get_sample_instance_length (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
120
+ uint al_get_sample_instance_position (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
121
121
122
- float al_get_sample_instance_speed (in ALLEGRO_SAMPLE_INSTANCE * spl);
123
- float al_get_sample_instance_gain (in ALLEGRO_SAMPLE_INSTANCE * spl);
124
- float al_get_sample_instance_pan (in ALLEGRO_SAMPLE_INSTANCE * spl);
125
- float al_get_sample_instance_time (in ALLEGRO_SAMPLE_INSTANCE * spl);
122
+ float al_get_sample_instance_speed (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
123
+ float al_get_sample_instance_gain (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
124
+ float al_get_sample_instance_pan (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
125
+ float al_get_sample_instance_time (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
126
126
127
- ALLEGRO_AUDIO_DEPTH al_get_sample_instance_depth (in ALLEGRO_SAMPLE_INSTANCE * spl);
128
- ALLEGRO_CHANNEL_CONF al_get_sample_instance_channels (in ALLEGRO_SAMPLE_INSTANCE * spl);
129
- ALLEGRO_PLAYMODE al_get_sample_instance_playmode (in ALLEGRO_SAMPLE_INSTANCE * spl);
127
+ ALLEGRO_AUDIO_DEPTH al_get_sample_instance_depth (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
128
+ ALLEGRO_CHANNEL_CONF al_get_sample_instance_channels (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
129
+ ALLEGRO_PLAYMODE al_get_sample_instance_playmode (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
130
130
131
- bool al_get_sample_instance_playing (in ALLEGRO_SAMPLE_INSTANCE * spl);
132
- bool al_get_sample_instance_attached (in ALLEGRO_SAMPLE_INSTANCE * spl);
131
+ bool al_get_sample_instance_playing (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
132
+ bool al_get_sample_instance_attached (const ( ALLEGRO_SAMPLE_INSTANCE ) * spl);
133
133
134
134
bool al_set_sample_instance_position (ALLEGRO_SAMPLE_INSTANCE * spl, uint val);
135
135
bool al_set_sample_instance_length (ALLEGRO_SAMPLE_INSTANCE * spl, uint val);
@@ -154,24 +154,24 @@ nothrow @nogc extern (C)
154
154
void al_destroy_audio_stream (ALLEGRO_AUDIO_STREAM * stream);
155
155
void al_drain_audio_stream (ALLEGRO_AUDIO_STREAM * stream);
156
156
157
- uint al_get_audio_stream_frequency (in ALLEGRO_AUDIO_STREAM * stream);
158
- uint al_get_audio_stream_length (in ALLEGRO_AUDIO_STREAM * stream);
159
- uint al_get_audio_stream_fragments (in ALLEGRO_AUDIO_STREAM * stream);
160
- uint al_get_available_audio_stream_fragments (in ALLEGRO_AUDIO_STREAM * stream);
157
+ uint al_get_audio_stream_frequency (const ( ALLEGRO_AUDIO_STREAM ) * stream);
158
+ uint al_get_audio_stream_length (const ( ALLEGRO_AUDIO_STREAM ) * stream);
159
+ uint al_get_audio_stream_fragments (const ( ALLEGRO_AUDIO_STREAM ) * stream);
160
+ uint al_get_available_audio_stream_fragments (const ( ALLEGRO_AUDIO_STREAM ) * stream);
161
161
162
- float al_get_audio_stream_speed (in ALLEGRO_AUDIO_STREAM * stream);
163
- float al_get_audio_stream_gain (in ALLEGRO_AUDIO_STREAM * stream);
164
- float al_get_audio_stream_pan (in ALLEGRO_AUDIO_STREAM * stream);
162
+ float al_get_audio_stream_speed (const ( ALLEGRO_AUDIO_STREAM ) * stream);
163
+ float al_get_audio_stream_gain (const ( ALLEGRO_AUDIO_STREAM ) * stream);
164
+ float al_get_audio_stream_pan (const ( ALLEGRO_AUDIO_STREAM ) * stream);
165
165
166
- ALLEGRO_CHANNEL_CONF al_get_audio_stream_channels (in ALLEGRO_AUDIO_STREAM * stream);
167
- ALLEGRO_AUDIO_DEPTH al_get_audio_stream_depth (in ALLEGRO_AUDIO_STREAM * stream);
168
- ALLEGRO_PLAYMODE al_get_audio_stream_playmode (in ALLEGRO_AUDIO_STREAM * stream);
166
+ ALLEGRO_CHANNEL_CONF al_get_audio_stream_channels (const ( ALLEGRO_AUDIO_STREAM ) * stream);
167
+ ALLEGRO_AUDIO_DEPTH al_get_audio_stream_depth (const ( ALLEGRO_AUDIO_STREAM ) * stream);
168
+ ALLEGRO_PLAYMODE al_get_audio_stream_playmode (const ( ALLEGRO_AUDIO_STREAM ) * stream);
169
169
170
- bool al_get_audio_stream_playing (in ALLEGRO_AUDIO_STREAM * spl);
171
- bool al_get_audio_stream_attached (in ALLEGRO_AUDIO_STREAM * spl);
172
- ulong al_get_audio_stream_played_samples (in ALLEGRO_AUDIO_STREAM * stream);
170
+ bool al_get_audio_stream_playing (const ( ALLEGRO_AUDIO_STREAM ) * spl);
171
+ bool al_get_audio_stream_attached (const ( ALLEGRO_AUDIO_STREAM ) * spl);
172
+ ulong al_get_audio_stream_played_samples (const ( ALLEGRO_AUDIO_STREAM ) * stream);
173
173
174
- void * al_get_audio_stream_fragment (in ALLEGRO_AUDIO_STREAM * stream);
174
+ void * al_get_audio_stream_fragment (const ( ALLEGRO_AUDIO_STREAM ) * stream);
175
175
176
176
bool al_set_audio_stream_speed (ALLEGRO_AUDIO_STREAM * stream, float val);
177
177
bool al_set_audio_stream_gain (ALLEGRO_AUDIO_STREAM * stream, float val);
@@ -200,13 +200,13 @@ nothrow @nogc extern (C)
200
200
bool al_attach_mixer_to_mixer (ALLEGRO_MIXER * stream, ALLEGRO_MIXER * mixer);
201
201
bool al_set_mixer_postprocess_callback (ALLEGRO_MIXER * mixer, void function (void * buf, uint samples, void * data) cb, void * data);
202
202
203
- uint al_get_mixer_frequency (in ALLEGRO_MIXER * mixer);
204
- ALLEGRO_CHANNEL_CONF al_get_mixer_channels (in ALLEGRO_MIXER * mixer);
205
- ALLEGRO_AUDIO_DEPTH al_get_mixer_depth (in ALLEGRO_MIXER * mixer);
206
- ALLEGRO_MIXER_QUALITY al_get_mixer_quality (in ALLEGRO_MIXER * mixer);
207
- float al_get_mixer_gain (in ALLEGRO_MIXER * mixer);
208
- bool al_get_mixer_playing (in ALLEGRO_MIXER * mixer);
209
- bool al_get_mixer_attached (in ALLEGRO_MIXER * mixer);
203
+ uint al_get_mixer_frequency (const ( ALLEGRO_MIXER ) * mixer);
204
+ ALLEGRO_CHANNEL_CONF al_get_mixer_channels (const ( ALLEGRO_MIXER ) * mixer);
205
+ ALLEGRO_AUDIO_DEPTH al_get_mixer_depth (const ( ALLEGRO_MIXER ) * mixer);
206
+ ALLEGRO_MIXER_QUALITY al_get_mixer_quality (const ( ALLEGRO_MIXER ) * mixer);
207
+ float al_get_mixer_gain (const ( ALLEGRO_MIXER ) * mixer);
208
+ bool al_get_mixer_playing (const ( ALLEGRO_MIXER ) * mixer);
209
+ bool al_get_mixer_attached (const ( ALLEGRO_MIXER ) * mixer);
210
210
bool al_set_mixer_frequency (ALLEGRO_MIXER * mixer, uint val);
211
211
bool al_set_mixer_quality (ALLEGRO_MIXER * mixer, ALLEGRO_MIXER_QUALITY val);
212
212
bool al_set_mixer_gain (ALLEGRO_MIXER * mixer, float gain);
@@ -224,11 +224,11 @@ nothrow @nogc extern (C)
224
224
ALLEGRO_VOICE * voice);
225
225
void al_detach_voice (ALLEGRO_VOICE * voice);
226
226
227
- uint al_get_voice_frequency (in ALLEGRO_VOICE * voice);
228
- uint al_get_voice_position (in ALLEGRO_VOICE * voice);
229
- ALLEGRO_CHANNEL_CONF al_get_voice_channels (in ALLEGRO_VOICE * voice);
230
- ALLEGRO_AUDIO_DEPTH al_get_voice_depth (in ALLEGRO_VOICE * voice);
231
- bool al_get_voice_playing (in ALLEGRO_VOICE * voice);
227
+ uint al_get_voice_frequency (const ( ALLEGRO_VOICE ) * voice);
228
+ uint al_get_voice_position (const ( ALLEGRO_VOICE ) * voice);
229
+ ALLEGRO_CHANNEL_CONF al_get_voice_channels (const ( ALLEGRO_VOICE ) * voice);
230
+ ALLEGRO_AUDIO_DEPTH al_get_voice_depth (const ( ALLEGRO_VOICE ) * voice);
231
+ bool al_get_voice_playing (const ( ALLEGRO_VOICE ) * voice);
232
232
bool al_set_voice_position (ALLEGRO_VOICE * voice, uint val);
233
233
bool al_set_voice_playing (ALLEGRO_VOICE * voice, bool val);
234
234
@@ -255,21 +255,21 @@ nothrow @nogc extern (C)
255
255
void al_set_default_voice (ALLEGRO_VOICE * voice);
256
256
257
257
/* File type handlers */
258
- bool al_register_sample_loader (in char * ext, ALLEGRO_SAMPLE * function (in char * filename) loader);
259
- bool al_register_sample_saver (in char * ext, bool function (in char * filename, ALLEGRO_SAMPLE * spl) saver);
260
- bool al_register_audio_stream_loader (in char * ext, ALLEGRO_AUDIO_STREAM * function (in char * filename, size_t buffer_count, uint samples) stream_loader);
258
+ bool al_register_sample_loader (const ( char ) * ext, ALLEGRO_SAMPLE * function (const ( char ) * filename) loader);
259
+ bool al_register_sample_saver (const ( char ) * ext, bool function (const ( char ) * filename, ALLEGRO_SAMPLE * spl) saver);
260
+ bool al_register_audio_stream_loader (const ( char ) * ext, ALLEGRO_AUDIO_STREAM * function (const ( char ) * filename, size_t buffer_count, uint samples) stream_loader);
261
261
262
- bool al_register_sample_loader_f (in char * ext, ALLEGRO_SAMPLE * function (ALLEGRO_FILE * fp) loader);
263
- bool al_register_sample_saver_f (in char * ext, bool function (ALLEGRO_FILE * fp, ALLEGRO_SAMPLE * spl) saver);
264
- bool al_register_audio_stream_loader_f (in char * ext, ALLEGRO_AUDIO_STREAM * function (ALLEGRO_FILE * fp, size_t buffer_count, uint samples) stream_loader);
262
+ bool al_register_sample_loader_f (const ( char ) * ext, ALLEGRO_SAMPLE * function (ALLEGRO_FILE * fp) loader);
263
+ bool al_register_sample_saver_f (const ( char ) * ext, bool function (ALLEGRO_FILE * fp, ALLEGRO_SAMPLE * spl) saver);
264
+ bool al_register_audio_stream_loader_f (const ( char ) * ext, ALLEGRO_AUDIO_STREAM * function (ALLEGRO_FILE * fp, size_t buffer_count, uint samples) stream_loader);
265
265
266
- ALLEGRO_SAMPLE * al_load_sample (in char * filename);
267
- bool al_save_sample (in char * filename, ALLEGRO_SAMPLE * spl);
268
- ALLEGRO_AUDIO_STREAM * al_load_audio_stream (in char * filename, size_t buffer_count, uint samples);
266
+ ALLEGRO_SAMPLE * al_load_sample (const ( char ) * filename);
267
+ bool al_save_sample (const ( char ) * filename, ALLEGRO_SAMPLE * spl);
268
+ ALLEGRO_AUDIO_STREAM * al_load_audio_stream (const ( char ) * filename, size_t buffer_count, uint samples);
269
269
270
- ALLEGRO_SAMPLE * al_load_sample_f (ALLEGRO_FILE * fp, in char * ident);
271
- bool al_save_sample_f (ALLEGRO_FILE * fp, in char * ident, ALLEGRO_SAMPLE * spl);
272
- ALLEGRO_AUDIO_STREAM * al_load_audio_stream_f(ALLEGRO_FILE * fp, in char * ident, size_t buffer_count, uint samples);
270
+ ALLEGRO_SAMPLE * al_load_sample_f (ALLEGRO_FILE * fp, const ( char ) * ident);
271
+ bool al_save_sample_f (ALLEGRO_FILE * fp, const ( char ) * ident, ALLEGRO_SAMPLE * spl);
272
+ ALLEGRO_AUDIO_STREAM * al_load_audio_stream_f(ALLEGRO_FILE * fp, const ( char ) * ident, size_t buffer_count, uint samples);
273
273
274
274
/* Recording functions */
275
275
version (AllegroAudioUnstable)
0 commit comments