Jump to content

Sounds...


Rad
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...