Sign in to follow this  
Followers 0
Rad

Sounds...

11 posts in this topic

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 :lmao:

I cant even make it loop.... is there anything I can do

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

need more info...???

Raindancer got there first ( same idea )

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

COM Object?

Only suggestion I have until I get more info.

Edited by greenmachine

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

COM object? ... If I knew what it was and would help wouldnt you think I would have used that? :lmao:

More information on it please

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by Raindancer

Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer

Share this post


Link to post
Share on other sites

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..)

Share this post


Link to post
Share on other sites

...I dont know what to do with those

Share this post


Link to post
Share on other sites

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 it

Also, to stop playing a file just use _SoundStop.

Was it really that hard... ?

...I dont know what to do with those

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0