Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2001, 10:09 AM
gLes gLes is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,273
Default Sound Play

Hi!
If I play a sound with sndPlay function then if it's a lont sound how can I stop it for example after 3 seconds?

Thx. in advance

gLes
Reply With Quote
  #2  
Old 02-06-2001, 10:20 AM
douglas douglas is offline
Senior Member
 
Join Date: Jul 2001
Posts: 7,695
Default RE: Sound Play

Use a timer, and once 3 seconds are up, then stop it using something like this:

SndPlaySound(nil);
Reply With Quote
  #3  
Old 02-06-2001, 10:39 AM
gLes gLes is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,273
Default RE: RE: Sound Play

I tried it but it didn't work...anything else?
Reply With Quote
  #4  
Old 02-06-2001, 11:09 AM
douglas douglas is offline
Senior Member
 
Join Date: Jul 2001
Posts: 7,695
Default RE: RE: RE: Sound Play

I looked it up, as I was not sure if that was correct or not, and this is what I used in my program.

sndPlaySound(nil, 0);

If that does not work, give me your code of your playing of the sound file.
Reply With Quote
  #5  
Old 02-06-2001, 11:38 AM
gLes gLes is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,273
Default RE: RE: RE: RE: Sound Play

Thx...it works now...I tried it all kind of ways and it always came up with some conversion error...it's fine now...thx
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 01:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.