You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
James Brundage edited this page Oct 23, 2026
·
1 revision
get_Duration
Gets Wave Duration
Gets the duration of a wave file.
This should be the length of it's PCM data, divided by bytes per second.
View Source
<#.SYNOPSIS Gets Wave Duration .DESCRIPTION Gets the duration of a wave file. This should be the length of it's PCM data, divided by bytes per second.#>$bps=$this.BytesPerSecondif ($bps) {
[TimeSpan]::FromSeconds($this.'#data'.length /$bps)
}