Utilities#
Small helpers used across the public surface.
Pos#
class Pos
3D position vector used everywhere YSE needs spatial coordinates — sound positions, the listener position, reverb-zone centres.
Immutable value type. Construct fresh instances instead of mutating.
Constructors#
Pos(this.x, this.y, this.z)
Construct a position with explicit components.
Pos.zero()
Construct the zero vector.
factory Pos.fromNative(yse_pos_t native)
Convert a freshly-returned native [yse_pos_t] struct to a Dart [Pos].
Properties#
final double x
Cartesian X component.
final double y
Cartesian Y component.
final double z
Cartesian Z component.
int get hashCode
Methods#
String toString()
bool ==(Object other)
YseException#
class YseException implements Exception
Exception type for every failure surfaced from the YSE engine.
Wraps a [YseStatus] code (when the underlying call returned one) and a human-readable message — typically the engine’s thread-local last-error string at the time of failure.
Constructors#
YseException(this.message, [this.status])
Constructs an exception with a [message] and optional [status].
Properties#
final String message
Human-readable description of the failure.
final YseStatus? status
The raw status code, if the originating C call returns one.
Methods#
String toString()