Modify

Opened 10 years ago

Closed 10 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 Changed 10 years ago by Melba23

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

Fixed by revision [10897] in version: 3.3.13.17

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

Action
as closed The owner will remain Melba23.
Author


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

 
Note: See TracTickets for help on using tickets.