Skip to content

Commit ad7ffe3

Browse files
committed
Sync SDL3_mixer wiki -> header
1 parent 49774b9 commit ad7ffe3

File tree

1 file changed

+43
-24
lines changed

1 file changed

+43
-24
lines changed

include/SDL3_mixer/SDL_mixer.h

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ typedef struct Mix_Music Mix_Music;
277277
*
278278
* \param devid the device name to open, or 0 for a reasonable default.
279279
* \param spec the audio format you'd like SDL_mixer to work in.
280-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
280+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
281+
* for more information.
281282
*
282283
* \since This function is available since SDL_mixer 3.0.0.
283284
*
@@ -1177,7 +1178,8 @@ typedef void (SDLCALL *Mix_EffectDone_t)(int chan, void *udata);
11771178
* mixed.
11781179
* \param d effect done callback.
11791180
* \param arg argument.
1180-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1181+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1182+
* for more information.
11811183
*
11821184
* \since This function is available since SDL_mixer 3.0.0.
11831185
*/
@@ -1201,7 +1203,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_RegisterEffect(int chan, Mix_EffectFunc
12011203
*
12021204
* \param channel the channel to unregister an effect on, or MIX_CHANNEL_POST.
12031205
* \param f effect the callback stop calling in future mixing iterations.
1204-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1206+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1207+
* for more information.
12051208
*
12061209
* \since This function is available since SDL_mixer 3.0.0.
12071210
*/
@@ -1226,7 +1229,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_UnregisterEffect(int channel, Mix_Effec
12261229
*
12271230
* \param channel the channel to unregister all effects on, or
12281231
* MIX_CHANNEL_POST.
1229-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1232+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1233+
* for more information.
12301234
*
12311235
* \since This function is available since SDL_mixer 3.0.0.
12321236
*/
@@ -1284,7 +1288,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_UnregisterAllEffects(int channel);
12841288
* volume.
12851289
* \param right Volume of stereo right channel, 0 is silence, 255 is full
12861290
* volume.
1287-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1291+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1292+
* for more information.
12881293
*
12891294
* \since This function is available since SDL_mixer 3.0.0.
12901295
*
@@ -1336,7 +1341,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_SetPanning(int channel, Uint8 left, Uin
13361341
* \param channel The mixer channel to position, or MIX_CHANNEL_POST.
13371342
* \param angle angle, in degrees. North is 0, and goes clockwise.
13381343
* \param distance distance; 0 is the listener, 255 is maxiumum distance away.
1339-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1344+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1345+
* for more information.
13401346
*
13411347
* \since This function is available since SDL_mixer 3.0.0.
13421348
*/
@@ -1372,7 +1378,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_SetPosition(int channel, Sint16 angle,
13721378
*
13731379
* \param channel The mixer channel to attenuate, or MIX_CHANNEL_POST.
13741380
* \param distance distance; 0 is the listener, 255 is maxiumum distance away.
1375-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1381+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1382+
* for more information.
13761383
*
13771384
* \since This function is available since SDL_mixer 3.0.0.
13781385
*/
@@ -1403,9 +1410,9 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_SetDistance(int channel, Uint8 distance
14031410
*
14041411
* \param channel The mixer channel to reverse, or MIX_CHANNEL_POST.
14051412
* \param flip non-zero to reverse stereo, zero to disable this effect.
1406-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information. Note that an audio device
1407-
* in mono mode is a no-op, but this call will return successful in
1408-
* that case.
1413+
* \returns SDL_TRUE on success or SDL_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.
14091416
*
14101417
* \since This function is available since SDL_mixer 3.0.0.
14111418
*/
@@ -1459,7 +1466,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_ReserveChannels(int num);
14591466
*
14601467
* \param which the channel to set the tag on.
14611468
* \param tag an arbitrary value to assign a channel.
1462-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1469+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1470+
* for more information.
14631471
*
14641472
* \since This function is available since SDL_mixer 3.0.0.
14651473
*/
@@ -1485,7 +1493,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_GroupChannel(int which, int tag);
14851493
* \param from the first channel to set the tag on.
14861494
* \param to the last channel to set the tag on, inclusive.
14871495
* \param tag an arbitrary value to assign a channel.
1488-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1496+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1497+
* for more information.
14891498
*
14901499
* \since This function is available since SDL_mixer 3.0.0.
14911500
*/
@@ -1638,7 +1647,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_PlayChannelTimed(int channel, Mix_Chunk *chu
16381647
* \param music the new music object to schedule for mixing.
16391648
* \param loops the number of loops to play the music for (0 means "play once
16401649
* and stop").
1641-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1650+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1651+
* for more information.
16421652
*
16431653
* \since This function is available since SDL_mixer 3.0.0.
16441654
*/
@@ -1665,7 +1675,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_PlayMusic(Mix_Music *music, int loops);
16651675
* \param loops the number of times the chunk should loop, -1 to loop (not
16661676
* actually) infinitely.
16671677
* \param ms the number of milliseconds to spend fading in.
1668-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1678+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1679+
* for more information.
16691680
*
16701681
* \since This function is available since SDL_mixer 3.0.0.
16711682
*/
@@ -1704,7 +1715,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_FadeInMusic(Mix_Music *music, int loops
17041715
* \param ms the number of milliseconds to spend fading in.
17051716
* \param position the start position within the music, in seconds, where
17061717
* playback should start.
1707-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
1718+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
1719+
* for more information.
17081720
*
17091721
* \since This function is available since SDL_mixer 3.0.0.
17101722
*/
@@ -2067,8 +2079,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_FadeOutGroup(int tag, int ms);
20672079
* mixer to manage later, and returns immediately.
20682080
*
20692081
* \param ms number of milliseconds to fade before halting the channel.
2070-
* \returns SDL_TRUE if music was scheduled to fade, SDL_FALSE otherwise. If no
2071-
* music is currently playing, this returns SDL_FALSE.
2082+
* \returns SDL_TRUE if music was scheduled to fade, SDL_FALSE otherwise. If
2083+
* no music is currently playing, this returns SDL_FALSE.
20722084
*
20732085
* \since This function is available since SDL_mixer 3.0.0.
20742086
*/
@@ -2272,7 +2284,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_PausedMusic(void);
22722284
* This only applies to MOD music formats.
22732285
*
22742286
* \param order order.
2275-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
2287+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
2288+
* for more information.
22762289
*
22772290
* \since This function is available since SDL_mixer 3.0.0.
22782291
*/
@@ -2285,7 +2298,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_ModMusicJumpToOrder(int order);
22852298
*
22862299
* \param music the music object.
22872300
* \param track the track number to play. 0 is the first track.
2288-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
2301+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
2302+
* for more information.
22892303
*
22902304
* \since This function is available since SDL_mixer 3.0.0.
22912305
*/
@@ -2313,7 +2327,8 @@ extern SDL_DECLSPEC int SDLCALL Mix_GetNumTracks(Mix_Music *music);
23132327
* number) and for WAV, OGG, FLAC, MP3, and MODPLUG music at the moment.
23142328
*
23152329
* \param position the new position, in seconds (as a double).
2316-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
2330+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
2331+
* for more information.
23172332
*
23182333
* \since This function is available since SDL_mixer 3.0.0.
23192334
*/
@@ -2444,7 +2459,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_PlayingMusic(void);
24442459
* good reason.
24452460
*
24462461
* \param command command.
2447-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
2462+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
2463+
* for more information.
24482464
*
24492465
* \since This function is available since SDL_mixer 3.0.0.
24502466
*/
@@ -2466,7 +2482,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_SetMusicCMD(const char *command);
24662482
*
24672483
* \param paths Paths on the filesystem where SoundFonts are available,
24682484
* separated by semicolons.
2469-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
2485+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
2486+
* for more information.
24702487
*
24712488
* \since This function is available since SDL_mixer 3.0.0.
24722489
*/
@@ -2519,7 +2536,8 @@ typedef SDL_bool (SDLCALL *Mix_EachSoundFontCallback)(const char*, void*);
25192536
*
25202537
* \param function the callback function to call once per path.
25212538
* \param data a pointer to pass to the callback for its own personal use.
2522-
* \returns SDL_TRUE if callback ever returned SDL_TRUE, SDL_FALSE on error or if the callback never returned SDL_TRUE.
2539+
* \returns SDL_TRUE if callback ever returned SDL_TRUE, SDL_FALSE on error or
2540+
* if the callback never returned SDL_TRUE.
25232541
*
25242542
* \since This function is available since SDL_mixer 3.0.0.
25252543
*
@@ -2536,7 +2554,8 @@ extern SDL_DECLSPEC SDL_bool SDLCALL Mix_EachSoundFont(Mix_EachSoundFontCallback
25362554
* play MIDI files.
25372555
*
25382556
* \param path path to a Timidity config file.
2539-
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information.
2557+
* \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
2558+
* for more information.
25402559
*
25412560
* \since This function is available since SDL_mixer 3.0.0.
25422561
*/

0 commit comments

Comments
 (0)