bindings/miniaudio_dart library

Functions

engine_alloc() Pointer<Engine>
engine_init(Pointer<Engine> self, int periodMs) Future<int>
engine_load_sound(Pointer<Engine> self, Pointer<Sound> sound, Pointer data, int dataSize, int format, int sampleRate, int channels) int
engine_start(Pointer<Engine> self) int
engine_uninit(Pointer<Engine> self) → void
generator_create() Pointer<Generator>
generator_destroy(Pointer<Generator> self) → void
generator_get_available_frames(Pointer<Generator> self) int
generator_get_buffer(Pointer<Generator> self, Pointer<Float> output, int frames_to_read) int
generator_get_volume(Pointer<Generator> self) double
generator_init(Pointer<Generator> self, int format, int channels, int sample_rate, int buffer_duration_seconds) Future<int>
generator_set_noise(Pointer<Generator> self, int type, int seed, double amplitude) int
generator_set_pulsewave(Pointer<Generator> self, double frequency, double amplitude, double dutyCycle) 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) int
recorder_create() Pointer<Recorder>
recorder_destroy(Pointer<Recorder> self) → void
recorder_get_available_frames(Pointer<Recorder> self) int
recorder_get_buffer(Pointer<Recorder> self, Pointer<Float> output, int frames_to_read) int
recorder_init_file(Pointer<Recorder> self, String filename, {int sampleRate = 44800, int channels = 1, int format = AudioFormat.float32}) Future<int>
recorder_init_stream(Pointer<Recorder> self, {int sampleRate = 44800, int channels = 1, int format = AudioFormat.float32, int bufferDurationSeconds = 5}) Future<int>
recorder_is_recording(Pointer<Recorder> self) bool
recorder_start(Pointer<Recorder> self) int
recorder_stop(Pointer<Recorder> self) int
sound_alloc(int size) Pointer<Sound>
sound_get_duration(Pointer<Sound> self) double
sound_get_volume(Pointer<Sound> self) double
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