PDA

Показать полную графическую версию : Звуковая плата - звук.


Prisoner
24-10-2003, 23:44
Сабж.

Megabyte
27-10-2003, 11:06
Пример на Дельфи:

unit Unit1;

interface

uses
 mmsystem,Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
 StdCtrls;

type
 TForm1 = class(TForm)
   Memo1: TMemo;
   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
if WaveOutGetNumDevs>0 then memo1.Lines.Add(' Sound Hardware present')
else memo1.Lines.Add(' Sound Hardware not present');

end;

end.

Prisoner
27-10-2003, 23:40
Ништяк! Спасибо большое :).




© OSzone.net 2001-2012