You will have to add LibSndFile and FileIO packages to try this example.

The example loads one channel from an *.ogg file into SIGVIEW. Please note that LibSndFile package supports many different file formats.

You will have to install LibSndFile package before using this example.

using FileIO: load

import LibSndFile

function update( output_signal::SigviewSignalWindow )

  #load file content 

  file = load("c:/Temp/test1.ogg")

  #extract first channel of this stereo ogg file into the samples array

  output_signal.samples =[:,1]

  output_signal.samplingRate = file.samplerate

  return true