js, examples : fix a few minor issues caused by the recent API changes

This commit is contained in:
Georgi Gerganov
2022-07-22 16:57:01 +03:00
parent 412c781efd
commit 40422d437c
4 changed files with 10 additions and 6 deletions

View File

@@ -87,7 +87,7 @@
captureStop.click();
// generate audio waveform
var waveform = ggwave.encode(instance, txData.value, ggwave.TxProtocolId.GGWAVE_TX_PROTOCOL_AUDIBLE_FAST, 10)
var waveform = ggwave.encode(instance, txData.value, ggwave.ProtocolId.GGWAVE_PROTOCOL_AUDIBLE_FAST, 10)
// play audio
var buf = convertTypedArray(waveform, Float32Array);