X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_soundfile.pas;h=c508593235bc070b10a2d348efcc7942131e4885;hb=94ca9d5ebc01f94b5c4044adbb8ca4048802c0d2;hp=6ba268ae389119ce40f812f84cd5e111e4ad4749;hpb=a4b97dbff3c995c7dda7fcfd5fc61e0aa19e7547;p=d2df-sdl.git diff --git a/src/engine/e_soundfile.pas b/src/engine/e_soundfile.pas index 6ba268a..c508593 100644 --- a/src/engine/e_soundfile.pas +++ b/src/engine/e_soundfile.pas @@ -2,8 +2,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -34,22 +33,19 @@ type protected FFormat: TSoundFormat; FStreaming: Boolean; - FLooping: Boolean; public - function Load(Data: Pointer; Len: LongWord; SStreaming: Boolean): Boolean; virtual; abstract; overload; - function Load(FName: string; SStreaming: Boolean): Boolean; virtual; abstract; overload; + function Load(Data: Pointer; Len: LongWord; Loop: Boolean): Boolean; virtual; abstract; overload; + function Load(FName: string; Loop: Boolean): Boolean; virtual; abstract; overload; - function SetPosition(Pos: LongWord): Boolean; virtual; abstract; + function Finished(): Boolean; virtual; abstract; + function Restart(): Boolean; virtual; abstract; function FillBuffer(Buf: Pointer; Len: LongWord): LongWord; virtual; abstract; - function GetAll(var OutPtr: Pointer): LongWord; virtual; abstract; - procedure Free(); virtual; abstract; property Format: TSoundFormat read FFormat; property Streaming: Boolean read FStreaming; - property Looping: Boolean read FLooping write FLooping; end; TSoundLoaderFactory = class