|
@@ -161,6 +161,9 @@ uses
|
|
{$IFNDEF no_smpeg}
|
|
{$IFNDEF no_smpeg}
|
|
smpeg,
|
|
smpeg,
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
+{$ENDIF}
|
|
|
|
+{$IFDEF MORPHOS}
|
|
|
|
+ exec,
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
sdl;
|
|
sdl;
|
|
|
|
|
|
@@ -185,6 +188,10 @@ const
|
|
SDL_MixerLibName = 'SDL_mixer';
|
|
SDL_MixerLibName = 'SDL_mixer';
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
|
|
|
|
+{$IFDEF MACOS}
|
|
|
|
+ SDL_MixerLibName = 'powersdl_mixer.library';
|
|
|
|
+{$ENDIF}
|
|
|
|
+
|
|
{* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL *}
|
|
{* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL *}
|
|
SDL_MIXER_MAJOR_VERSION = 1;
|
|
SDL_MIXER_MAJOR_VERSION = 1;
|
|
{$EXTERNALSYM MIX_MAJOR_VERSION}
|
|
{$EXTERNALSYM MIX_MAJOR_VERSION}
|
|
@@ -478,6 +485,10 @@ type
|
|
procedure SDL_MIXER_VERSION(var X: TSDL_Version);
|
|
procedure SDL_MIXER_VERSION(var X: TSDL_Version);
|
|
{$EXTERNALSYM SDL_MIXER_VERSION}
|
|
{$EXTERNALSYM SDL_MIXER_VERSION}
|
|
|
|
|
|
|
|
+{$IFDEF MORPHOS}
|
|
|
|
+{$INCLUDE powersdl_mixer.inc}
|
|
|
|
+{$ELSE MORPHOS}
|
|
|
|
+
|
|
{ This function gets the version of the dynamically linked SDL_mixer library.
|
|
{ This function gets the version of the dynamically linked SDL_mixer library.
|
|
It should NOT be used to fill a version structure, instead you should use the
|
|
It should NOT be used to fill a version structure, instead you should use the
|
|
SDL_MIXER_VERSION() macro. }
|
|
SDL_MIXER_VERSION() macro. }
|
|
@@ -570,6 +581,8 @@ function Mix_GetMusicHookData : Pointer;
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_GetMusicHookData'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_GetMusicHookData'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
{$EXTERNALSYM Mix_GetMusicHookData}
|
|
{$EXTERNALSYM Mix_GetMusicHookData}
|
|
|
|
|
|
|
|
+{$ENDIF MORPHOS}
|
|
|
|
+
|
|
{* Add your own callback when a channel has finished playing. NULL
|
|
{* Add your own callback when a channel has finished playing. NULL
|
|
* to disable callback.*}
|
|
* to disable callback.*}
|
|
type
|
|
type
|
|
@@ -579,10 +592,14 @@ type
|
|
TChannel_finished = procedure( channel: Integer );
|
|
TChannel_finished = procedure( channel: Integer );
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
|
|
|
|
+{$IFNDEF MORPHOS}
|
|
|
|
+
|
|
procedure Mix_ChannelFinished( channel_finished : TChannel_finished );
|
|
procedure Mix_ChannelFinished( channel_finished : TChannel_finished );
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_ChannelFinished'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_ChannelFinished'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
{$EXTERNALSYM Mix_ChannelFinished}
|
|
{$EXTERNALSYM Mix_ChannelFinished}
|
|
|
|
|
|
|
|
+{$ENDIF MORPHOS}
|
|
|
|
+
|
|
const
|
|
const
|
|
MIX_CHANNEL_POST = -2;
|
|
MIX_CHANNEL_POST = -2;
|
|
|
|
|
|
@@ -663,6 +680,9 @@ type
|
|
* returns zero if error (no such channel), nonzero if added.
|
|
* returns zero if error (no such channel), nonzero if added.
|
|
* Error messages can be retrieved from Mix_GetError().
|
|
* Error messages can be retrieved from Mix_GetError().
|
|
*}
|
|
*}
|
|
|
|
+
|
|
|
|
+{$IFNDEF MORPHOS}
|
|
|
|
+
|
|
function Mix_RegisterEffect( chan : integer; f : TMix_EffectFunc; d : TMix_EffectDone; arg : Pointer ) : integer;
|
|
function Mix_RegisterEffect( chan : integer; f : TMix_EffectFunc; d : TMix_EffectDone; arg : Pointer ) : integer;
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_RegisterEffect'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_RegisterEffect'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
{$EXTERNALSYM Mix_RegisterEffect}
|
|
{$EXTERNALSYM Mix_RegisterEffect}
|
|
@@ -694,9 +714,12 @@ function Mix_UnregisterAllEffects( channel : integer ) : integer;
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_UnregisterAllEffects'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_UnregisterAllEffects'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
{$EXTERNALSYM Mix_UnregisterAllEffects}
|
|
{$EXTERNALSYM Mix_UnregisterAllEffects}
|
|
|
|
|
|
|
|
+{$ENDIF MORPHOS}
|
|
|
|
+
|
|
const
|
|
const
|
|
MIX_EFFECTSMAXSPEED = 'MIX_EFFECTSMAXSPEED';
|
|
MIX_EFFECTSMAXSPEED = 'MIX_EFFECTSMAXSPEED';
|
|
|
|
|
|
|
|
+{$IFNDEF MORPHOS}
|
|
{*
|
|
{*
|
|
* These are the internally - defined mixing effects.They use the same API that
|
|
* These are the internally - defined mixing effects.They use the same API that
|
|
* effects defined in the application use, but are provided here as a
|
|
* effects defined in the application use, but are provided here as a
|
|
@@ -1069,6 +1092,8 @@ procedure Mix_CloseAudio;
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_CloseAudio'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
cdecl; external {$IFDEF __GPC__}name 'Mix_CloseAudio'{$ELSE} SDL_MixerLibName{$ENDIF __GPC__};
|
|
{$EXTERNALSYM Mix_CloseAudio}
|
|
{$EXTERNALSYM Mix_CloseAudio}
|
|
|
|
|
|
|
|
+{$ENDIF MORPHOS}
|
|
|
|
+
|
|
{ We'll use SDL for reporting errors }
|
|
{ We'll use SDL for reporting errors }
|
|
procedure Mix_SetError( fmt : PChar );
|
|
procedure Mix_SetError( fmt : PChar );
|
|
|
|
|