Rad Posted January 16, 2006 Posted January 16, 2006 Is this right.... theres only the command to play a sound and set wave volume?! I want music, but I cant have it turn on/off I cant even make it loop.... is there anything I can do
Raindancer Posted January 16, 2006 Posted January 16, 2006 Do you have some code on which we could help you troubleshoot? Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer
Valuater Posted January 16, 2006 Posted January 16, 2006 (edited) need more info...??? Raindancer got there first ( same idea ) 8) Edited January 16, 2006 by Valuater
greenmachine Posted January 16, 2006 Posted January 16, 2006 (edited) COM Object? Only suggestion I have until I get more info. Edited January 16, 2006 by greenmachine
Rad Posted January 16, 2006 Author Posted January 16, 2006 Whats more to say? If I play my music and another sound plays it stops, If I set the volume it sets it for ALL sounds, Theres no command to stop a specific sound.... Func Fire() SoundPlay($InstallDir&"\Fire.WAV") Endfunc Func Music() SoundPlay($InstallDir&"\Music.WAV") Endfunc Fire() launched by pressing F, music launched when program starts
Raindancer Posted January 16, 2006 Posted January 16, 2006 Yes, then you might have to use a COM Object, or something. AutoIt I think isn't able to play two sounds at once... Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer
Rad Posted January 16, 2006 Author Posted January 16, 2006 COM object? ... If I knew what it was and would help wouldnt you think I would have used that? More information on it please
Raindancer Posted January 16, 2006 Posted January 16, 2006 (edited) A COM Object is a Function of a foreign Application or Library. (Function isn't really correct, it's more a collection of functions and methods, and so on...) With the AutoIt Beta you can use COM Objects with it. But don't ask me which one to use... don't know it either... maybe someone else? Edited January 16, 2006 by Raindancer Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer
Helge Posted January 16, 2006 Posted January 16, 2006 You should be able to find some useful hits if you searched the forum at little bit...anyway..Some months ago I created these UDFs for use with SoundPlay. Test them out...-> Sound.au3-> Sound_test.au3(will see if I get to upload a new version soon..)
Helge Posted January 17, 2006 Posted January 17, 2006 To loop a file :- Start the file with SoundPlay- Check the mode, using _SoundGetInfo- If the mode isn't "playing" then use _SoundStart(0) to restart itAlso, to stop playing a file just use _SoundStop.Was it really that hard... ? Rad said: ...I dont know what to do with those
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now