Methods
setCallbacks(micControlCb, remotePttStatusCb, audioDiagCb, noisegateDiagCb, paramsChangedCb, connectionLostCb)
Set the callbacks for various events and state change notifications.
Parameters:
Name | Type | Description |
---|---|---|
micControlCb |
function | Mic mute/unmute change - form micControlCallback(boolean muteState) |
remotePttStatusCb |
function | Remote push-to-talk status change - form remotePttStateCallback(boolean remotePttButtonOnState) |
audioDiagCb |
function | Audio diagnostic info - form audioDiagCallback({ numChannels:, sampleRate:, numSamples:, processTime: } diagInfo) |
noisegateDiagCb |
function | NoiseGate diagnostic info - form noisegateDiagCallback({ noiseGateState:, remoteNoiseGateState: } diagInfo) |
paramsChangedCb |
function | Parameters changed, eg due to loading a .cfg file - form paramsChangedCallback() |
connectionLostCb |
function | Connection lost - form connectionLostCallback() |