Modify

Opened 12 years ago

Closed 12 years ago

#2840 closed Bug (Fixed)

Bug in _Sound.au3

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

Description

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

TestScript:
(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)

E

Attachments (0)

Change History (1)

comment:1 by Melba23, 12 years ago

Milestone: 3.3.13.17
Owner: set to Melba23
Resolution: Fixed
Status: newclosed

Fixed by revision [10897] in version: 3.3.13.17

Modify Ticket

Action
as closed The owner will remain Melba23.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.