BikAudioTrackHeader
Defined in: bik-decoder.ts:147
Decoded header of an audio track of a BIK video.
Properties
Section titled “Properties”flags:
object
Defined in: bik-decoder.ts:176
Flags indicating whether specific features apply to the audio track.
stereo
Section titled “stereo”stereo:
boolean
true when the audio track is stereo, otherwise false (usually indicating mono audio).
usesDCT
Section titled “usesDCT”usesDCT:
boolean
true when the audio data is encoded using DCTs (discrete cosine transforms), otherwise
false when the audio data is encoded using RDFTs (real discrete Fourier transforms).
numChannels
Section titled “numChannels”numChannels:
number
Defined in: bik-decoder.ts:166
Number of separate audio channels stored by the track.
Stereo channels (when stereo is true) are separate planes for audio
encoded via DCTs (when usesDCT is true), so the value of numChannels
will include the number of stereo channels.
When audio is encoded via RDFTs (when usesDCT is false) then stereo channels
are interleaved, so the value of numChannels will not include the number of
channels. This means that for a regular stereo track (when stereo is true),
numChannels will have the value 1.
sampleRate
Section titled “sampleRate”sampleRate:
number
Defined in: bik-decoder.ts:171
Sample rate/frequency of the audio data (in Hz).
trackId
Section titled “trackId”trackId:
number
Defined in: bik-decoder.ts:152
Identifier for the audio track. This may not match the index of the track in the BikFrame.audioTracks array.