02.03.2014, 05:18
|
Прохожий
|
|
Регистрация: 02.03.2014
Сообщения: 3
Версия Delphi: xe5
Репутация: 10
|
|
Не работает PlaySound
Код:
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, WinAPI.MMSystem;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
playsound ('D:\1.wav', 0, snd_filename or snd_async);
end;
end.
При нажатии кнопки пиликает системный звук вместо '1.wav'
Win7x64 RAD Studio XE5
|