Skip to content

Commit d1d6a8f

Browse files
authored
Merge pull request #1 from netTrekfd/master
corrected duration parsing
2 parents fd0583b + a7dbfe9 commit d1d6a8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Waveform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getInfo()
6060
}
6161

6262
if ($this->samples && $this->sampleRate) {
63-
$this->duration = 1.0 * $this->samples / $this->samples;
63+
$this->duration = 1.0 * $this->samples / $this->sampleRate;
6464
}
6565

6666
if ($ret !== 0) {

0 commit comments

Comments
 (0)