Opened 10 years ago

Closed 10 years ago

#2840 closed Bug (Fixed)

Bug in _Sound.au3

Reported by: Eukalyptus Owned by: Melba23
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: sound soundlength miliseconds milliseconds Cc:


in every "set time format miliseconds" there is missing a "l" => milliseconds!
So the format is never set to MS

(test only with .wav, because "time format bytes" dosn´t work with .mp3)

#include <Sound.au3>
$aSnd = _SoundOpen(@ScriptDir & "\Test.wav")
$iDuration = _SoundLength($aSnd);correct because milliseconds is the standard format
ConsoleWrite("+ Duration: " & $iDuration & @CRLF)

__SoundMciSendString("set " & $aSnd[0] & " time format bytes")
$iDuration = _SoundLength($aSnd);returns bytes, because "set time format" fails inside this function
ConsoleWrite("! Duration: " & $iDuration & @CRLF)

__SoundMciSendString("set " & $aSnd[0] & " time format milliseconds")
$iDuration = _SoundLength($aSnd);correct again
ConsoleWrite("+ Duration: " & $iDuration & @CRLF)


Attachments (0)

Change History (1)

comment:1 Changed 10 years ago by Melba23

  • Milestone set to
  • Owner set to Melba23
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [10897] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Melba23.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.