/ fm / liveswitch / WssAudioSampleCounter
Class: WssAudioSampleCounter
fm.liveswitch.WssAudioSampleCounter
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new WssAudioSampleCounter(measureEverySeconds
: number, label
: string): WssAudioSampleCounter
Parameters:
Name | Type |
---|---|
measureEverySeconds |
number |
label |
string |
Returns: WssAudioSampleCounter
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:7
Properties
_label
• Private
_label: string
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:4
_lastSampleRate
• Private
_lastSampleRate: number= 0
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:7
_measureEveryMs
• Private
_measureEveryMs: number
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:3
_sampleCount
• Private
_sampleCount: number= 0
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:6
_startTimeMs
• Private
_startTimeMs: number= -1
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:5
Methods
add
▸ add(sampleCount
: number): void
Parameters:
Name | Type |
---|---|
sampleCount |
number |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:14
getLabel
▸ getLabel(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:35
getLastSampleRate
▸ getLastSampleRate(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssAudioSampleCounter.ts:39