crashdemons Posted May 17, 2009 Share Posted May 17, 2009 (edited) I just downloaded the SFX for AutoIt v3.3.0.0 I was wondering - is the UDF help file still actively updated in the SFX copy or has the Sound UDF documentation just not been updated? autoit-v3-sfx.exe => UDFs3.chm Function Reference _SoundOpen ... Return Value Success: Sound ID Failure: 0 ... This is exactly as shown in earlier autoit versions, however - _SoundOpen does NOT return a Sound ID (previously "Sound ID" meant the textual ID returned by the function) in the new release, but instead returns an array. Am I missing some documentation here? (UDFs3.chm seems to be feeding me some old info, which is quite confusing when updating my scripts...) Additionally, the help file implies that _SoundPlay will accept an alias string, which does not seem to be the case. SoundPlay Play a sound file. ... _SoundPlay ( $sSnd_id [, $fWait ] ) Parameters $sSnd_id Sound ID (the 'alias') as returned by _SoundOpen or a file ...(The above clearly implies a String input, not an array for _SoundPlay ($sSnd_id) ) Thanks in any event. From Sound.au3 $aSndID[0] = $sSndID ... $aSndID[1] = $iVBRRatio $aSndID[2] = 0 Return SetError(0, $iRet, $aSndID) From OLDER Sound.au3 If $sAlias = "" Then $sSnd_id = RandomStr(10) Else $sSnd_id = $sAlias EndIf ... Return SetError(0, $iRet, $sSnd_id) Edited May 17, 2009 by crashdemons My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 17, 2009 Moderators Share Posted May 17, 2009 (edited) crashdemons,RazerM modified the Sound.au3 code last year, based on some work I did, to get over the problem of the MCI DLL returning incorrect durations from _SoundLen when dealing with VBR files. You can find out more about it here and here if you are interested.Essentially, _SoundOpen now returns an array in which the [0] element is the alias string (as was the case before) and the [1] and [2] elements hold corrective factors for subsequent _SoundLen calls (these factors are also used in _SoundPos and _SoundSeek, for example). From a user's point of view there is no code breaking problem - the return array from _SoundOpen is used just as the 'old' string value.I had not realised that the Help file had not been updated along with the UDF - I will raise a ticket and offer to help with the rewrite. Thanks for noticing. :-)M23Edit: Ticket raised. Edited May 17, 2009 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
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