@@ -277,8 +277,8 @@ typedef struct Mix_Music Mix_Music;
277
277
*
278
278
* \param devid the device name to open, or 0 for a reasonable default.
279
279
* \param spec the audio format you'd like SDL_mixer to work in.
280
- * \returns true on success or false on failure; call SDL_GetError()
281
- * for more information.
280
+ * \returns true on success or false on failure; call SDL_GetError() for more
281
+ * information.
282
282
*
283
283
* \since This function is available since SDL_mixer 3.0.0.
284
284
*
@@ -369,9 +369,9 @@ extern SDL_DECLSPEC int SDLCALL Mix_AllocateChannels(int numchans);
369
369
* fly. Also, crucially, there are as many channels for chunks as the app can
370
370
* allocate, but SDL_mixer only offers a single "music" channel.
371
371
*
372
- * If `closeio` is true, the IOStream will be closed before returning,
373
- * whether this function succeeds or not. SDL_mixer reads everything it needs
374
- * from the IOStream during this call in any case.
372
+ * If `closeio` is true, the IOStream will be closed before returning, whether
373
+ * this function succeeds or not. SDL_mixer reads everything it needs from the
374
+ * IOStream during this call in any case.
375
375
*
376
376
* There is a separate function (a macro, before SDL_mixer 3.0.0) to read
377
377
* files from disk without having to deal with SDL_IOStream:
@@ -382,8 +382,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_AllocateChannels(int numchans);
382
382
* Mix_FreeChunk().
383
383
*
384
384
* \param src an SDL_IOStream that data will be read from.
385
- * \param closeio true to close the SDL_IOStream before returning,
386
- * false to leave it open.
385
+ * \param closeio true to close the SDL_IOStream before returning, false to
386
+ * leave it open.
387
387
* \returns a new chunk, or NULL on error.
388
388
*
389
389
* \since This function is available since SDL_mixer 3.0.0
@@ -419,8 +419,8 @@ extern SDL_DECLSPEC Mix_Chunk * SDLCALL Mix_LoadWAV_IO(SDL_IOStream *src, bool c
419
419
* Mix_FreeChunk().
420
420
*
421
421
* Note that before SDL_mixer 3.0.0, this function was a macro that called
422
- * Mix_LoadWAV_IO(), creating a IOStream and setting `closeio` to true.
423
- * This macro has since been promoted to a proper API function. Older binaries
422
+ * Mix_LoadWAV_IO(), creating a IOStream and setting `closeio` to true. This
423
+ * macro has since been promoted to a proper API function. Older binaries
424
424
* linked against a newer SDL_mixer will still call Mix_LoadWAV_IO directly,
425
425
* as they are using the macro, which was available since the dawn of time.
426
426
*
@@ -483,9 +483,9 @@ extern SDL_DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS(const char *file);
483
483
* fly. Also, crucially, there are as many channels for chunks as the app can
484
484
* allocate, but SDL_mixer only offers a single "music" channel.
485
485
*
486
- * If `closeio` is true, the IOStream will be closed before returning,
487
- * whether this function succeeds or not. SDL_mixer reads everything it needs
488
- * from the IOStream during this call in any case.
486
+ * If `closeio` is true, the IOStream will be closed before returning, whether
487
+ * this function succeeds or not. SDL_mixer reads everything it needs from the
488
+ * IOStream during this call in any case.
489
489
*
490
490
* As a convenience, there is a function to read files from disk without
491
491
* having to deal with SDL_IOStream: `Mix_LoadMUS("filename.mp3")` will manage
@@ -499,8 +499,8 @@ extern SDL_DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS(const char *file);
499
499
* Mix_FreeMusic().
500
500
*
501
501
* \param src an SDL_IOStream that data will be read from.
502
- * \param closeio true to close the SDL_IOStream before returning,
503
- * false to leave it open.
502
+ * \param closeio true to close the SDL_IOStream before returning, false to
503
+ * leave it open.
504
504
* \returns a new music object, or NULL on error.
505
505
*
506
506
* \since This function is available since SDL_mixer 3.0.0.
@@ -543,9 +543,9 @@ extern SDL_DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS_IO(SDL_IOStream *src, bool c
543
543
* - `MUS_OPUS` (Opus files)
544
544
* - `MUS_WAVPACK` (WavPack files)
545
545
*
546
- * If `closeio` is true, the IOStream will be closed before returning,
547
- * whether this function succeeds or not. SDL_mixer reads everything it needs
548
- * from the IOStream during this call in any case.
546
+ * If `closeio` is true, the IOStream will be closed before returning, whether
547
+ * this function succeeds or not. SDL_mixer reads everything it needs from the
548
+ * IOStream during this call in any case.
549
549
*
550
550
* As a convenience, there is a function to read files from disk without
551
551
* having to deal with SDL_IOStream: `Mix_LoadMUS("filename.mp3")` will manage
@@ -556,8 +556,8 @@ extern SDL_DECLSPEC Mix_Music * SDLCALL Mix_LoadMUS_IO(SDL_IOStream *src, bool c
556
556
*
557
557
* \param src an SDL_IOStream that data will be read from.
558
558
* \param type the type of audio data provided by `src`.
559
- * \param closeio true to close the SDL_IOStream before returning,
560
- * false to leave it open.
559
+ * \param closeio true to close the SDL_IOStream before returning, false to
560
+ * leave it open.
561
561
* \returns a new music object, or NULL on error.
562
562
*
563
563
* \since This function is available since SDL_mixer 3.0.0.
@@ -719,8 +719,7 @@ extern SDL_DECLSPEC const char * SDLCALL Mix_GetChunkDecoder(int index);
719
719
* capital letters (some example names are "AIFF", "VOC", "WAV").
720
720
*
721
721
* \param name the decoder name to query.
722
- * \returns true if a decoder by that name is available, false
723
- * otherwise.
722
+ * \returns true if a decoder by that name is available, false otherwise.
724
723
*
725
724
* \since This function is available since SDL_mixer 3.0.0.
726
725
*
@@ -787,8 +786,7 @@ extern SDL_DECLSPEC const char * SDLCALL Mix_GetMusicDecoder(int index);
787
786
* capital letters (some example names are "MOD", "MP3", "FLAC").
788
787
*
789
788
* \param name the decoder name to query.
790
- * \returns true if a decoder by that name is available, false
791
- * otherwise.
789
+ * \returns true if a decoder by that name is available, false otherwise.
792
790
*
793
791
* \since This function is available since SDL_mixer 3.0.0
794
792
*
@@ -1178,8 +1176,8 @@ typedef void (SDLCALL *Mix_EffectDone_t)(int chan, void *udata);
1178
1176
* mixed.
1179
1177
* \param d effect done callback.
1180
1178
* \param arg argument.
1181
- * \returns true on success or false on failure; call SDL_GetError()
1182
- * for more information.
1179
+ * \returns true on success or false on failure; call SDL_GetError() for more
1180
+ * information.
1183
1181
*
1184
1182
* \since This function is available since SDL_mixer 3.0.0.
1185
1183
*/
@@ -1203,8 +1201,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_RegisterEffect(int chan, Mix_EffectFunc_t f
1203
1201
*
1204
1202
* \param channel the channel to unregister an effect on, or MIX_CHANNEL_POST.
1205
1203
* \param f effect the callback stop calling in future mixing iterations.
1206
- * \returns true on success or false on failure; call SDL_GetError()
1207
- * for more information.
1204
+ * \returns true on success or false on failure; call SDL_GetError() for more
1205
+ * information.
1208
1206
*
1209
1207
* \since This function is available since SDL_mixer 3.0.0.
1210
1208
*/
@@ -1229,8 +1227,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_UnregisterEffect(int channel, Mix_EffectFun
1229
1227
*
1230
1228
* \param channel the channel to unregister all effects on, or
1231
1229
* MIX_CHANNEL_POST.
1232
- * \returns true on success or false on failure; call SDL_GetError()
1233
- * for more information.
1230
+ * \returns true on success or false on failure; call SDL_GetError() for more
1231
+ * information.
1234
1232
*
1235
1233
* \since This function is available since SDL_mixer 3.0.0.
1236
1234
*/
@@ -1288,8 +1286,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_UnregisterAllEffects(int channel);
1288
1286
* volume.
1289
1287
* \param right Volume of stereo right channel, 0 is silence, 255 is full
1290
1288
* volume.
1291
- * \returns true on success or false on failure; call SDL_GetError()
1292
- * for more information.
1289
+ * \returns true on success or false on failure; call SDL_GetError() for more
1290
+ * information.
1293
1291
*
1294
1292
* \since This function is available since SDL_mixer 3.0.0.
1295
1293
*
@@ -1341,8 +1339,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_SetPanning(int channel, Uint8 left, Uint8 r
1341
1339
* \param channel The mixer channel to position, or MIX_CHANNEL_POST.
1342
1340
* \param angle angle, in degrees. North is 0, and goes clockwise.
1343
1341
* \param distance distance; 0 is the listener, 255 is maxiumum distance away.
1344
- * \returns true on success or false on failure; call SDL_GetError()
1345
- * for more information.
1342
+ * \returns true on success or false on failure; call SDL_GetError() for more
1343
+ * information.
1346
1344
*
1347
1345
* \since This function is available since SDL_mixer 3.0.0.
1348
1346
*/
@@ -1378,8 +1376,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_SetPosition(int channel, Sint16 angle, Uint
1378
1376
*
1379
1377
* \param channel The mixer channel to attenuate, or MIX_CHANNEL_POST.
1380
1378
* \param distance distance; 0 is the listener, 255 is maxiumum distance away.
1381
- * \returns true on success or false on failure; call SDL_GetError()
1382
- * for more information.
1379
+ * \returns true on success or false on failure; call SDL_GetError() for more
1380
+ * information.
1383
1381
*
1384
1382
* \since This function is available since SDL_mixer 3.0.0.
1385
1383
*/
@@ -1410,9 +1408,9 @@ extern SDL_DECLSPEC bool SDLCALL Mix_SetDistance(int channel, Uint8 distance);
1410
1408
*
1411
1409
* \param channel The mixer channel to reverse, or MIX_CHANNEL_POST.
1412
1410
* \param flip non-zero to reverse stereo, zero to disable this effect.
1413
- * \returns true on success or false on failure; call SDL_GetError()
1414
- * for more information. Note that an audio device in mono mode is a
1415
- * no-op, but this call will return successful in that case.
1411
+ * \returns true on success or false on failure; call SDL_GetError() for more
1412
+ * information. Note that an audio device in mono mode is a no-op,
1413
+ * but this call will return successful in that case.
1416
1414
*
1417
1415
* \since This function is available since SDL_mixer 3.0.0.
1418
1416
*/
@@ -1466,8 +1464,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_ReserveChannels(int num);
1466
1464
*
1467
1465
* \param which the channel to set the tag on.
1468
1466
* \param tag an arbitrary value to assign a channel.
1469
- * \returns true on success or false on failure; call SDL_GetError()
1470
- * for more information.
1467
+ * \returns true on success or false on failure; call SDL_GetError() for more
1468
+ * information.
1471
1469
*
1472
1470
* \since This function is available since SDL_mixer 3.0.0.
1473
1471
*/
@@ -1493,8 +1491,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_GroupChannel(int which, int tag);
1493
1491
* \param from the first channel to set the tag on.
1494
1492
* \param to the last channel to set the tag on, inclusive.
1495
1493
* \param tag an arbitrary value to assign a channel.
1496
- * \returns true on success or false on failure; call SDL_GetError()
1497
- * for more information.
1494
+ * \returns true on success or false on failure; call SDL_GetError() for more
1495
+ * information.
1498
1496
*
1499
1497
* \since This function is available since SDL_mixer 3.0.0.
1500
1498
*/
@@ -1647,8 +1645,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_PlayChannelTimed(int channel, Mix_Chunk *chu
1647
1645
* \param music the new music object to schedule for mixing.
1648
1646
* \param loops the number of loops to play the music for (0 means "play once
1649
1647
* and stop").
1650
- * \returns true on success or false on failure; call SDL_GetError()
1651
- * for more information.
1648
+ * \returns true on success or false on failure; call SDL_GetError() for more
1649
+ * information.
1652
1650
*
1653
1651
* \since This function is available since SDL_mixer 3.0.0.
1654
1652
*/
@@ -1675,8 +1673,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_PlayMusic(Mix_Music *music, int loops);
1675
1673
* \param loops the number of times the chunk should loop, -1 to loop (not
1676
1674
* actually) infinitely.
1677
1675
* \param ms the number of milliseconds to spend fading in.
1678
- * \returns true on success or false on failure; call SDL_GetError()
1679
- * for more information.
1676
+ * \returns true on success or false on failure; call SDL_GetError() for more
1677
+ * information.
1680
1678
*
1681
1679
* \since This function is available since SDL_mixer 3.0.0.
1682
1680
*/
@@ -1715,8 +1713,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_FadeInMusic(Mix_Music *music, int loops, in
1715
1713
* \param ms the number of milliseconds to spend fading in.
1716
1714
* \param position the start position within the music, in seconds, where
1717
1715
* playback should start.
1718
- * \returns true on success or false on failure; call SDL_GetError()
1719
- * for more information.
1716
+ * \returns true on success or false on failure; call SDL_GetError() for more
1717
+ * information.
1720
1718
*
1721
1719
* \since This function is available since SDL_mixer 3.0.0.
1722
1720
*/
@@ -2079,8 +2077,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_FadeOutGroup(int tag, int ms);
2079
2077
* mixer to manage later, and returns immediately.
2080
2078
*
2081
2079
* \param ms number of milliseconds to fade before halting the channel.
2082
- * \returns true if music was scheduled to fade, false otherwise. If
2083
- * no music is currently playing, this returns false.
2080
+ * \returns true if music was scheduled to fade, false otherwise. If no music
2081
+ * is currently playing, this returns false.
2084
2082
*
2085
2083
* \since This function is available since SDL_mixer 3.0.0.
2086
2084
*/
@@ -2284,8 +2282,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_PausedMusic(void);
2284
2282
* This only applies to MOD music formats.
2285
2283
*
2286
2284
* \param order order.
2287
- * \returns true on success or false on failure; call SDL_GetError()
2288
- * for more information.
2285
+ * \returns true on success or false on failure; call SDL_GetError() for more
2286
+ * information.
2289
2287
*
2290
2288
* \since This function is available since SDL_mixer 3.0.0.
2291
2289
*/
@@ -2298,8 +2296,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_ModMusicJumpToOrder(int order);
2298
2296
*
2299
2297
* \param music the music object.
2300
2298
* \param track the track number to play. 0 is the first track.
2301
- * \returns true on success or false on failure; call SDL_GetError()
2302
- * for more information.
2299
+ * \returns true on success or false on failure; call SDL_GetError() for more
2300
+ * information.
2303
2301
*
2304
2302
* \since This function is available since SDL_mixer 3.0.0.
2305
2303
*/
@@ -2327,8 +2325,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_GetNumTracks(Mix_Music *music);
2327
2325
* number) and for WAV, OGG, FLAC, MP3, and MODPLUG music at the moment.
2328
2326
*
2329
2327
* \param position the new position, in seconds (as a double).
2330
- * \returns true on success or false on failure; call SDL_GetError()
2331
- * for more information.
2328
+ * \returns true on success or false on failure; call SDL_GetError() for more
2329
+ * information.
2332
2330
*
2333
2331
* \since This function is available since SDL_mixer 3.0.0.
2334
2332
*/
@@ -2459,8 +2457,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_PlayingMusic(void);
2459
2457
* good reason.
2460
2458
*
2461
2459
* \param command command.
2462
- * \returns true on success or false on failure; call SDL_GetError()
2463
- * for more information.
2460
+ * \returns true on success or false on failure; call SDL_GetError() for more
2461
+ * information.
2464
2462
*
2465
2463
* \since This function is available since SDL_mixer 3.0.0.
2466
2464
*/
@@ -2482,8 +2480,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_SetMusicCMD(const char *command);
2482
2480
*
2483
2481
* \param paths Paths on the filesystem where SoundFonts are available,
2484
2482
* separated by semicolons.
2485
- * \returns true on success or false on failure; call SDL_GetError()
2486
- * for more information.
2483
+ * \returns true on success or false on failure; call SDL_GetError() for more
2484
+ * information.
2487
2485
*
2488
2486
* \since This function is available since SDL_mixer 3.0.0.
2489
2487
*/
@@ -2536,8 +2534,8 @@ typedef bool (SDLCALL *Mix_EachSoundFontCallback)(const char*, void*);
2536
2534
*
2537
2535
* \param function the callback function to call once per path.
2538
2536
* \param data a pointer to pass to the callback for its own personal use.
2539
- * \returns true if callback ever returned true, false on error or
2540
- * if the callback never returned true.
2537
+ * \returns true if callback ever returned true, false on error or if the
2538
+ * callback never returned true.
2541
2539
*
2542
2540
* \since This function is available since SDL_mixer 3.0.0.
2543
2541
*
@@ -2554,8 +2552,8 @@ extern SDL_DECLSPEC bool SDLCALL Mix_EachSoundFont(Mix_EachSoundFontCallback fun
2554
2552
* play MIDI files.
2555
2553
*
2556
2554
* \param path path to a Timidity config file.
2557
- * \returns true on success or false on failure; call SDL_GetError()
2558
- * for more information.
2555
+ * \returns true on success or false on failure; call SDL_GetError() for more
2556
+ * information.
2559
2557
*
2560
2558
* \since This function is available since SDL_mixer 3.0.0.
2561
2559
*/
0 commit comments