You've already forked lazarus-ccr
To V0.0.8.0 Bugfix for linux systems
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7025 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -143,12 +143,13 @@ begin
|
||||
AboutBoxBackgroundColor := clCream;
|
||||
//AboutBoxFontName (string)
|
||||
//AboutBoxFontSize (integer)
|
||||
AboutBoxVersion := '0.0.7';
|
||||
AboutBoxVersion := '0.0.8';
|
||||
AboutBoxAuthorname := 'Gordon Bamber';
|
||||
AboutBoxOrganisation := 'Public Domain';
|
||||
AboutBoxAuthorEmail := 'minesadorada@charcodelvalle.com';
|
||||
AboutBoxLicenseType := 'MODIFIEDGPL';
|
||||
AboutBoxDescription := 'Plays WAVE sounds in Windows or Linux';
|
||||
AboutBoxDescription := 'Plays WAVE sounds in Windows or Linux' + LineEnding +
|
||||
'Public methods: Execute and StopSound';
|
||||
end;
|
||||
|
||||
destructor Tplaysound.Destroy;
|
||||
@ -164,6 +165,11 @@ procedure Tplaysound.Execute;
|
||||
begin
|
||||
if not FileExists(fPathToSoundFile) then
|
||||
Exit;
|
||||
{$IFDEF WINDOWS}
|
||||
fDefaultPlayCommand := 'sndPlaySound';
|
||||
{$ELSE}
|
||||
fDefaultPlayCommand := GetNonWindowsPlayCommand; // Linux, Mac etc.
|
||||
{$ENDIF}
|
||||
Try
|
||||
PlaySound(fPathToSoundFile);
|
||||
Except
|
||||
|
Reference in New Issue
Block a user