NativeBridge class
For internal use only. This class encapsulates the boilerplate code needed to call into native code and get responses back. It should hide any implementation details from the rest of the library.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
addTrackAudioUnit(
String id) → Future< int?> -
addTrackSf2(
String filename, bool isAsset, int patchNumber) → Future< int> -
addTrackSfz(
String sfzPath, String? tuningPath) → Future< int> -
addTrackSfzString(
String sampleRoot, String sfzContent, String? tuningString) → Future< int> -
clearEvents(
int trackIndex, int fromTick) → void -
doSetup(
) → Future< int> -
getBufferAvailableCount(
int trackIndex) → int -
getLastRenderTimeUs(
) → int -
getPosition(
) → int -
getTrackVolume(
int trackIndex) → double -
handleEventsNow(
int trackIndex, List< SchedulerEvent> events, int sampleRate, double tempo) → int -
listAudioUnits(
) → Future< List< String> ?> -
normalizeAssetDir(
String assetDir) → Future< String?> - On Android, this will copy the asset dir from the AssetManager into context.filesDir, and return the filesystem path to the newly created dir. Pathnames will be URL-decoded. On iOS, this will return the filesystem path to the asset dir.
-
pause(
) → void -
play(
) → void -
removeTrack(
int trackIndex) → void -
resetTrack(
int trackIndex) → void -
scheduleEvents(
int trackIndex, List< SchedulerEvent> events, int sampleRate, double tempo, int frameOffset) → int