HISE Docs

AudioFile


Class methods

getContent

Returns the current audio data as array of channels.

AudioFile.getContent()



getCurrentlyDisplayedIndex

Returns the current sample position (from 0 to numSamples).

AudioFile.getCurrentlyDisplayedIndex()



getCurrentlyLoadedFile

Returns the reference string for the currently loaded file.

AudioFile.getCurrentlyLoadedFile()



getNumSamples

returns the amount of samples.

AudioFile.getNumSamples()



getSampleRate

Returns the samplerate of the audio file.

AudioFile.getSampleRate()



linkTo

Links this audio file to the other

AudioFile.linkTo(var other)



loadFile

Loads an audio file from the given reference.

AudioFile.loadFile( String filePath)



setContentCallback

Sets a callback that is being executed when a new file is loaded (or the sample range changed).

AudioFile.setContentCallback(var contentFunction)



setDisplayCallback

Sets a callback that is being executed when the playback position changes.

AudioFile.setDisplayCallback(var displayFunction)



setRange

Sets a new sample range.

AudioFile.setRange(int min, int max)



update

Sends an update message to all registered listeners.

AudioFile.update()