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 

How can I keep a sound from interupting an existing sound?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rockum



Joined: 20 Dec 2007
Posts: 3

PostPosted: Thu Dec 20, 2007 3:14 am    Post subject: How can I keep a sound from interupting an existing sound? Reply with quote

When the script is playing a sound (Soundplay) a new sound (Soundplay) cuts its play when it starts. I want overlapping sounds.


Thanks
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 1499

PostPosted: Thu Dec 20, 2007 4:17 am    Post subject: Reply with quote

The Manual wrote:
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.
For advanced sound playing, I would suggest that you investigate an open-source media player program with either command-line interface or an open API. With such a media player, you could use AHK to, for instance...
Code:
run c:\VLC.exe "Filepath.wav" -play -multiinstance -nogui ; not actual code !!
or someting similar and then use either controlsend or sendmessage to control the program once it's launched.

Anyways, it probably won't be quick and easy to get this working, but I think instancing other media player programs might be your best bet.
_________________
My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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