Skip to content

SignalWrapper

Immutable class.

Wrapper of a signal with its associated AudioInfo.

Only rawSignal or wavSignal are not null, depending on the format of the data.

If wavSignal exists, then a wavBase64Signal can also be read (in text format).

Properties

audioInfo: AudioInfo

Information of the audio recorded so far.

rawSignal: DoubleArray?

Signal in raw format.

wavSignal: ByteArray?

Signal in wav format.

Public Methods

SignalWrapper(audioInfo: AudioInfo, rawSignal: DoubleArray)

Convenience constructor of the class. The main constructor is private.

  • Parameters:

    • audioInfo: information of the audio recorded so far.
    • rawSignal: signal in raw format.
SignalWrapper(audioInfo: AudioInfo, wavSignal: ByteArray)

Convenience constructor of the class. The main constructor is private.

  • Parameters:

    • audioInfo: information of the audio recorded so far.
    • wavSignal: signal in wav format.