Package io.github.givimad.whisperjni
Class WhisperState
java.lang.Object
io.github.givimad.whisperjni.WhisperJNI.WhisperJNIPointer
io.github.givimad.whisperjni.WhisperState
- All Implemented Interfaces:
AutoCloseable
The
WhisperState represents a whisper_state, useful for thread safe context sharing.
You need to dispose the native memory for its instances by calling close()
or WhisperJNI.free(WhisperState)- Author:
- Miguel Álvarez Díez - Initial contribution
-
Field Summary
Fields inherited from class io.github.givimad.whisperjni.WhisperJNI.WhisperJNIPointer
ref -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWhisperState(WhisperJNI whisper, int ref, WhisperContext context) The internal constructor forWhisperState -
Method Summary
Methods inherited from class io.github.givimad.whisperjni.WhisperJNI.WhisperJNIPointer
assertAvailable, isReleased, release
-
Constructor Details
-
WhisperState
The internal constructor forWhisperState- Parameters:
whisper- whisper lib instanceref- native pointer reference identifiercontext- parentWhisperContext
-
-
Method Details
-
close
public void close()
-