Browse Source

* adapt sdl mixer wavestream to 2008 SDL change. Patch by Yuichiro Takahashi
Mantis #25268

git-svn-id: trunk@25998 -

marco 11 years ago
parent
commit
c84ac2214d
2 changed files with 4 additions and 3 deletions
  1. 2 1
      packages/sdl/src/sdl_mixer.pas
  2. 2 2
      packages/sdl/src/sdl_mixer_nosmpeg.pas

+ 2 - 1
packages/sdl/src/sdl_mixer.pas

@@ -252,7 +252,8 @@ type
   //wavestream.h types
   //wavestream.h types
   PWAVStream = ^TWAVStream;
   PWAVStream = ^TWAVStream;
   TWAVStream = record
   TWAVStream = record
-    wavefp : Pointer;
+    rw : PSDL_RWops;
+    freerw : TSDL_Bool;
     start : longint;
     start : longint;
     stop : longint;
     stop : longint;
     cvt : TSDL_AudioCVT;
     cvt : TSDL_AudioCVT;

+ 2 - 2
packages/sdl/src/sdl_mixer_nosmpeg.pas

@@ -101,8 +101,8 @@ type
   //wavestream.h types
   //wavestream.h types
   PWAVStream = ^TWAVStream;
   PWAVStream = ^TWAVStream;
   TWAVStream = record
   TWAVStream = record
-    wavefp : Pointer;
-    start : longint;
+    rw : PSDL_RWops;
+    freerw : TSDL_Bool;
     stop : longint;
     stop : longint;
     cvt : TSDL_AudioCVT;
     cvt : TSDL_AudioCVT;
   end;
   end;