Skip to content

Commit 24dc63e

Browse files
committed
Fix Double -> cdouble in SDL2_Mixer
Some SDL2_Mixer functions were defined as taking arguments of type Double, instead of the more appropriate cdouble.
1 parent bb0d62f commit 24dc63e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

units/sdl2_mixer.pas

+2-2
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ function Mix_PlayMusic(music: PMix_Music; loops: cint): cint cdecl; external MIX
662662

663663
{* Fade in music or a channel over "ms" milliseconds, same semantics as the "Play" functions *}
664664
function Mix_FadeInMusic(music: PMix_Music; loops: cint; ms: cint): cint cdecl; external MIX_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_MIX_FadeInMusic' {$ENDIF} {$ENDIF};
665-
function Mix_FadeInMusicPos(music: PMix_Music; loops: cint; ms: cint; position: Double): cint cdecl; external MIX_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_MIX_FadeInMusicPos' {$ENDIF} {$ENDIF};
665+
function Mix_FadeInMusicPos(music: PMix_Music; loops: cint; ms: cint; position: cdouble): cint cdecl; external MIX_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_MIX_FadeInMusicPos' {$ENDIF} {$ENDIF};
666666
function Mix_FadeInChannel(channel: cint; chunk: PMix_Chunk; loops: cint; ms: cint): cint; cdecl;
667667
external MIX_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_MIX_FadeInChannel' {$ENDIF} {$ENDIF};
668668
function Mix_FadeInChannelTimed(channel: cint; chunk: PMix_Chunk; loops: cint; ms: cint; ticks: cint): cint cdecl; external MIX_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_MIX_FadeInChannelTimed' {$ENDIF} {$ENDIF};
@@ -745,7 +745,7 @@ function Mix_GetNumTracks(music: PMix_Music): cint; cdecl;
745745
order number) and for OGG, FLAC, MP3_MAD, MP3_MPG and MODPLUG music
746746
(set position in seconds), at the moment.
747747
*}
748-
function Mix_SetMusicPosition(position: Double): cint cdecl; external MIX_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_MIX_SetMusicPosition' {$ENDIF} {$ENDIF};
748+
function Mix_SetMusicPosition(position: cdouble): cint cdecl; external MIX_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_MIX_SetMusicPosition' {$ENDIF} {$ENDIF};
749749

750750
{* Get the current position of a music stream, in seconds.
751751
Returns -1.0 if this feature is not supported for some codec.

0 commit comments

Comments
 (0)