mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-07 07:30:02 +01:00
- Migrate configuration.ac file to new autotools - add building of also the dynamic-link version within 'source/SoundTouchDLL' directory from the main-level makefile - add a simple lazarus/pascal example project that uses the dynamic-link version of the SoundTouch library Signed-off-by: Olli <oparviai'at'iki.fi>
50 lines
615 B
ObjectPascal
50 lines
615 B
ObjectPascal
unit main;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, SoundTouchDLL;
|
|
|
|
|
|
type
|
|
|
|
{ TForm1 }
|
|
|
|
TForm1 = class(TForm)
|
|
EditVersion: TEdit;
|
|
Label1: TLabel;
|
|
Load: TButton;
|
|
|
|
procedure LoadClick(Sender: TObject);
|
|
private
|
|
|
|
public
|
|
|
|
end;
|
|
|
|
var
|
|
Form1: TForm1;
|
|
|
|
implementation
|
|
|
|
{$R *.lfm}
|
|
|
|
{ TForm1 }
|
|
|
|
procedure TForm1.LoadClick(Sender: TObject);
|
|
var
|
|
version:string;
|
|
begin
|
|
if IsSoundTouchLoaded() then
|
|
version := SoundTouchGetVersionString()
|
|
else
|
|
version := '<library loading failed>';
|
|
|
|
EditVersion.Text:= version;
|
|
end;
|
|
|
|
end.
|
|
|