DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[WA] Loop sound

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
piotr
Member


Joined: 06 Apr 2004
Posts: 1

PostPosted: 06/04/04 08:36    Post subject: [WA] Loop sound Reply with quote

Congratulations, WA is very god job.

However, i'm looking for simple method to loop played sounds, when i simply try to add Active:= True in OnDeactivate event, i recived out of memory error.
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 308

PostPosted: 11/04/04 14:22    Post subject: Reply with quote

I did it in the following way, and it worked.

Code:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, WaveIO, WaveOut, WavePlayers;

type
  TForm1 = class(TForm)
    AudioPlayer: TAudioPlayer;
    cbActive: TCheckBox;
    procedure AudioPlayerDeactivate(Sender: TObject);
    procedure cbActiveClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.AudioPlayerDeactivate(Sender: TObject);
begin
  AudioPlayer.Active := cbActive.Checked;
end;

procedure TForm1.cbActiveClick(Sender: TObject);
begin
  AudioPlayer.Active := cbActive.Checked;
end;

end.
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group