Skip to content

Commit 5b3f97c

Browse files
authored
Merge pull request #115 from Free-Pascal-meets-SDL-Website/update-sdlaudio
This patch updates sdlaudio.inc to 2.26.3. It also adds a definition for the cdouble type.
2 parents 4ebe24b + f8f22f0 commit 5b3f97c

File tree

3 files changed

+1220
-334
lines changed

3 files changed

+1220
-334
lines changed

units/ctypes.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ type
9292
cfloat = Single;
9393
{$EXTERNALSYM cfloat}
9494

95+
pcdouble = ^cdouble;
96+
cdouble = Double;
97+
{$EXTERNALSYM cfloat}
98+
9599
pcint = ^cint;
96100
pcuint = ^cuint;
97101
pclong = ^clong;

units/sdl2.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ interface
170170
{$I sdlpixels.inc} // 2.0.14 WIP
171171
{$I sdlrect.inc} // 2.24.0
172172
{$I sdlrwops.inc} // 2.0.14
173-
{$I sdlaudio.inc}
173+
{$I sdlaudio.inc} // 2.26.3
174174
{$I sdlblendmode.inc} // 2.0.14
175175
{$I sdlsurface.inc} // 2.0.14
176176
{$I sdlvideo.inc} // 2.24.0
@@ -344,9 +344,9 @@ procedure SDL_CompilerBarrier();
344344

345345
//from "sdl_audio.h"
346346

347-
function SDL_LoadWAV(_file: PAnsiChar; spec: PSDL_AudioSpec; audio_buf: ppcuint8; audio_len: pcuint32): PSDL_AudioSpec;
347+
function SDL_LoadWAV(file_: PAnsiChar; spec: PSDL_AudioSpec; audio_buf: ppcuint8; audio_len: pcuint32): PSDL_AudioSpec;
348348
begin
349-
Result := SDL_LoadWAV_RW(SDL_RWFromFile(_file, 'rb'), 1, spec, audio_buf, audio_len);
349+
Result := SDL_LoadWAV_RW(SDL_RWFromFile(file_, 'rb'), 1, spec, audio_buf, audio_len);
350350
end;
351351

352352
function SDL_AUDIO_BITSIZE(x: Cardinal): Cardinal;

0 commit comments

Comments
 (0)