AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SoundPlay ...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
BoBo
Guest





PostPosted: Wed Oct 27, 2004 6:19 pm    Post subject: SoundPlay ... Reply with quote

Any known issue with SoundPlay ?

If I run a downloaded sound file it will be executed with its assigned MS mediaplayer:
Code:
Run, bumblebee.wav


If I use AHK's SoundPlay command there's just a short "click" and that's it.
Code:
SoundPlay, bumblebee.wav


Shocked

W2K/Sp4/AHK1.0.22
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Wed Oct 27, 2004 6:37 pm    Post subject: Reply with quote

Because if the script is terminated, any currently-playing file that it started will stop: Use this if your script terminates right afterward:

SoundPlay, bumblebee.wav, wait
Back to top
View user's profile Send private message Send e-mail
BoBo
Guest





PostPosted: Wed Oct 27, 2004 8:34 pm    Post subject: Reply with quote

When I've checked the syntax I've interpreted the 1 at the wait parameters description as a timing (secs) value. Heck, should take some more secs to read the man page. Rolling Eyes

Thx, Chris.
Cool
Back to top
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Wed May 04, 2005 8:40 pm    Post subject: Reply with quote

From the help file "If a file is playing and the current script or a different script plays a second file, the first file will be stopped so that the second one can play."

I got two sound to play at the same time using 2 differnt scripts. One was compiled, the other was not. I just think this should be documented
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Thu May 05, 2005 10:43 am    Post subject: Reply with quote

You're right. It also works even if neither of the scripts is compiled. Maybe the sound stopping issue happens only on Win9x. I've changed the documentation to:

If a file is playing and the current script plays a second file, the first file will be stopped so that the second one can play. On some systems, certain file types might stop playing even when an entirely separate script plays a new file.

Thanks.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group