MinisoundFfiBindings class
Bindings for minisound.h
Constructors
- MinisoundFfiBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary
. -
MinisoundFfiBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup
.
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
-
engine_alloc(
) → Pointer< Engine> -
engine_init(
Pointer< Engine> self, int period_ms) → int -
engine_load_sound(
Pointer< Engine> self, Pointer<Sound> sound, Pointer<Float> data, int data_size, int sound_format, int channels, int sample_rate) → int -
engine_start(
Pointer< Engine> self) → int -
engine_uninit(
Pointer< Engine> self) → void -
generator_create(
) → Pointer< Generator> -
generator_get_available_frame_count(
Pointer< Generator> self) → int -
generator_get_volume(
Pointer< Generator> self) → double -
generator_init(
Pointer< Generator> self, int sound_format, int channels, int sample_rate, double buffer_len_s) → int -
generator_load_buffer(
Pointer< Generator> self, Pointer<Float> output, int floats_to_read) → int -
generator_set_noise(
Pointer< Generator> self, int type, int seed, double amplitude) → int -
generator_set_pulsewave(
Pointer< Generator> generator, double frequency, double amplitude, double duty_cycle) → int -
generator_set_volume(
Pointer< Generator> self, double value) → void -
generator_set_waveform(
Pointer< Generator> self, int type, double frequency, double amplitude) → int -
generator_start(
Pointer< Generator> self) → int -
generator_stop(
Pointer< Generator> self) → void -
generator_uninit(
Pointer< Generator> self) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recorder_create(
) → Pointer< Recorder> -
recorder_get_available_frames(
Pointer< Recorder> self) → int -
recorder_get_buffer(
Pointer< Recorder> self, Pointer<Float> output, int floats_to_read) → int -
recorder_init_file(
Pointer< Recorder> self, Pointer<Char> filename, int sample_rate, int channels, int sound_format) → int -
recorder_init_stream(
Pointer< Recorder> self, int sample_rate, int channels, int sound_format, int buffer_duration_seconds) → int -
recorder_is_recording(
Pointer< Recorder> recorder) → bool -
recorder_start(
Pointer< Recorder> recorder) → int -
recorder_stop(
Pointer< Recorder> recorder) → int -
recorder_uninit(
Pointer< Recorder> self) → void -
sound_alloc(
) → Pointer< Sound> -
sound_get_duration(
Pointer< Sound> self) → double -
sound_get_volume(
Pointer< Sound> self) → double -
sound_init(
Pointer< Sound> self, Pointer<Float> data, int data_size, int sound_format, int channels, int sample_rate, Pointer<Void> vengine) → int -
sound_pause(
Pointer< Sound> self) → void -
sound_play(
Pointer< Sound> self) → int -
sound_replay(
Pointer< Sound> self) → int -
sound_set_looped(
Pointer< Sound> self, bool value, int delay_ms) → void -
sound_set_volume(
Pointer< Sound> self, double value) → void -
sound_stop(
Pointer< Sound> self) → void -
sound_unload(
Pointer< Sound> self) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited