Skip to content

getAudioTrackDuration

getAudioTrackDuration(trackId, category): number | undefined

Gets the length of an IAudioTrack.

Parameters

trackId: string

category: string

Returns

number | undefined

The length of the track or undefined if the track doesn’t exist.

Source

src/audio/HowlerManager.ts:74