Vindicator209 Posted October 8, 2006 Posted October 8, 2006 could someone give me a place where I could find reference on the _sound commands? ive consulted both helpfiles, and got nothing [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]
xcal Posted October 8, 2006 Posted October 8, 2006 SoundPlay ( "filename" [, wait] )? How To Ask Questions The Smart Way
Thatsgreat2345 Posted October 8, 2006 Posted October 8, 2006 umm beta , _soundopen, _soundplay it is in the helpfile
xcal Posted October 8, 2006 Posted October 8, 2006 Help file? You're so crazy... How To Ask Questions The Smart Way
cppman Posted October 8, 2006 Posted October 8, 2006 Help file? You're so crazy...Sarcasm? Miva OS Project
Rad Posted October 8, 2006 Posted October 8, 2006 Who's crazy? 1: Make sure your using autoit3 BETA (install to autoit\beta) 2: Make sure your using the beta HELPFILE (start>all programs>autoit>beta>helpfile (beta)) 3: Use the search tab and type 'Sound' SoundPlay(@Windowsdir & "\media\tada.wav")
Rad Posted October 8, 2006 Posted October 8, 2006 (edited) As a seperate post, if for some reason they arent listed: A bit bright, might want to highlight it ^^ - if you find it let me know so i can delete this post its to long Opens a sound file for use with other _Sound functions. #include <Sound.au3> _SoundOpen($hFile [, $sAlias]) $hFile Path to sound file $sAlias Optional - A name given to the sound which is used in other functions. Return Value Success: Sound ID Failure: 0 @Error: 0 = No Error 2 = File does not exist 3 = alias contains whitespace @Extended: 0 = No Error Integer other than 0 = MCI Error Plays a sound file. #include <Sound.au3> _SoundPlay($sSnd_id [, $fWait]) $sSnd_id Sound ID (the 'alias') as returned by _SoundOpen or a file $fWait [optional] This flag determines if the script should wait for the sound to finish before continuing: 1 = wait until sound has finished 0 = continue script while sound is playing (default) Return Value Success: 1 Failure: 0 @Error: 0 = No Error 1 = Play Failed 2 = $fWait parameter is invalid Pause a playing sound. #include <Sound.au3> _SoundPause($sSnd_id) $sSnd_id Sound ID (the 'alias') as returned by _SoundOpen or a file Return Value Success: 1 Failure: 0 @Error: 0 = No Error 1 = Pause Failed Resume a paused sound. #include <Sound.au3> _SoundResume($sSnd_id) $sSnd_id Sound ID (the 'alias') as returned by _SoundOpen or a file Return Value Success: 1 Failure: 0 @Error: 0 = No Error 1 = Resume Failed Seeks the sound to the specified position. #include <Sound.au3> _SoundSeek($sSnd_id, $iHour, $iMin, $iSec) $sSnd_id Sound ID (the 'alias') as returned by _SoundOpen $iHour Hour to seek to $iMin Minute to seek to $iSec Second to seek to Return Value Success: 1 Failure: 0 @Error: 0 = No Error 1 = Failure Closes a sound previously opened with _SoundOpen. #include <Sound.au3> _SoundClose($sSnd_id) $sSnd_id Sound ID (the 'alias') as returned by _SoundOpen Return Value Success: 1 Failure: 0 @Error: 0 = No Error 1 = Failure Edited October 8, 2006 by Rad
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