| 1 |
{ |
| 2 |
Copyright 2017-2021 Michalis Kamburelis. |
| 3 |
|
| 4 |
This file is part of "Castle Game Engine". |
| 5 |
|
| 6 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 7 |
included in this distribution, for details about the copyright. |
| 8 |
|
| 9 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 12 |
|
| 13 |
---------------------------------------------------------------------------- |
| 14 |
} |
| 15 |
|
| 16 |
{ Sound engine information form. } |
| 17 |
unit FormSoundEngineInfo; |
| 18 |
|
| 19 |
{$mode objfpc}{$H+} |
| 20 |
|
| 21 |
interface |
| 22 |
|
| 23 |
uses |
| 24 |
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; |
| 25 |
|
| 26 |
type |
| 27 |
TSoundEngineInfoForm = class(TForm) |
| 28 |
ButtonClose: TButton; |
| 29 |
MemoInfo: TMemo; |
| 30 |
procedure ButtonCloseClick(Sender: TObject); |
| 31 |
procedure FormShow(Sender: TObject); |
| 32 |
private |
| 33 |
|
| 34 |
public |
| 35 |
|
| 36 |
end; |
| 37 |
|
| 38 |
var |
| 39 |
SoundEngineInfoForm: TSoundEngineInfoForm; |
| 40 |
|
| 41 |
implementation |
| 42 |
|
| 43 |
uses CastleSoundEngine; |
| 44 |
|
| 45 |
{$R *.lfm} |
| 46 |
|
| 47 |
procedure TSoundEngineInfoForm.ButtonCloseClick(Sender: TObject); |
| 48 |
begin |
| 49 |
Close; |
| 50 |
end; |
| 51 |
|
| 52 |
procedure TSoundEngineInfoForm.FormShow(Sender: TObject); |
| 53 |
begin |
| 54 |
if not SoundEngine.IsContextOpen then |
| 55 |
SoundEngine.ContextOpen; |
| 56 |
MemoInfo.Lines.Text := SoundEngine.Information; |
| 57 |
end; |
| 58 |
|
| 59 |
end. |