miniaudio_dart_ffi_bindings
        library 
 
      
    
    
    
    
    
    
      Functions
      
          - 
  circular_buffer_get_available_floats(Pointer<CircularBuffer> cb)
    → int
  
  
- 
  
  
- 
  circular_buffer_init(Pointer<CircularBuffer> cb, int size_in_bytes)
    → int
  
  
- 
  
  
- 
  circular_buffer_read(Pointer<CircularBuffer> cb, Pointer<Float> data, int size_in_floats)
    → int
  
  
- 
  
  
- 
  circular_buffer_read_available(Pointer<CircularBuffer> cb, Pointer<Float> data, int max_size_in_floats)
    → int
  
  
- 
  
  
- 
  circular_buffer_uninit(Pointer<CircularBuffer> cb)
    → void
  
  
- 
  
  
- 
  circular_buffer_write(Pointer<CircularBuffer> cb, Pointer<Float> data, int size_in_floats)
    → void
  
  
- 
  
  
- 
  codec_create_null_passthrough(Pointer<CodecConfig> cfg)
    → Pointer<Codec>
  
  
- 
  
  
- 
  codec_create_opus(Pointer<CodecConfig> cfg, int application)
    → Pointer<Codec>
  
  
- 
  
  
- 
  codec_runtime_current_id(Pointer<CodecRuntime> rt)
    → CodecID
  
  
- 
  
  
- 
  codec_runtime_init(Pointer<CodecRuntime> rt, CodecID initialID, Pointer<CodecConfig> cfg)
    → int
  
  
- 
  
  
- 
  codec_runtime_on_decoded_frames(Pointer<CodecRuntime> rt, Pointer<Float> pcm, int frames, Pointer<Void> userData)
    → int
  
  
- 
  
  
- 
  codec_runtime_push_packet(Pointer<CodecRuntime> rt, Pointer<Uint8> packet, int len, Pointer<StreamPlayer> player)
    → int
  
  
- 
  
  
- 
  codec_runtime_uninit(Pointer<CodecRuntime> rt)
    → void
  
  
- 
  
  
- 
  crosscoder_create(Pointer<CodecConfig> cfg, CodecID codecID, int application, int accumulate)
    → Pointer<CrossCoder>
  
  
- 
  
  
- 
  crosscoder_decode_packet(Pointer<CrossCoder> cc, Pointer<Uint8> packet, int packetLen, Pointer<Float> outFrames, int maxFrames)
    → int
  
  
- 
  
  
- 
  crosscoder_destroy(Pointer<CrossCoder> cc)
    → void
  
  
- 
  
  
- 
  crosscoder_encode_flush(Pointer<CrossCoder> cc, int pad, Pointer<Uint8> outPacket, int outCap, Pointer<Int> outBytes)
    → int
  
  
- 
  
  
- 
  crosscoder_encode_push_f32(Pointer<CrossCoder> cc, Pointer<Float> frames, int frameCount, Pointer<Uint8> outPacket, int outCap, Pointer<Int> outBytes)
    → int
  
  
- 
  
  
- 
  crosscoder_frame_size(Pointer<CrossCoder> cc)
    → int
  
  
- 
  
  
- 
  crosscoder_get_bitrate(Pointer<CrossCoder> cc)
    → int
  
  
- 
  
  
- 
  crosscoder_get_complexity(Pointer<CrossCoder> cc)
    → int
  
  
- 
  
  
- 
  crosscoder_get_vbr(Pointer<CrossCoder> cc)
    → int
  
  
- 
  
  
- 
  crosscoder_set_bitrate(Pointer<CrossCoder> cc, int bitrate)
    → int
  
  
- 
  
  
- 
  crosscoder_set_complexity(Pointer<CrossCoder> cc, int complexity)
    → int
  
  
- 
  
  
- 
  crosscoder_set_vbr(Pointer<CrossCoder> cc, int vbr)
    → int
  
  
- 
  
  
- 
  engine_alloc()
    → Pointer<Engine>
  
  
- 
  
  
- 
  engine_free(Pointer<Engine> self)
    → void
  
  
- 
  
  
- 
  engine_get_ma_engine(Pointer<Engine> self)
    → Pointer<ma_engine>
  
  
- 
  
  
- 
  engine_get_playback_device_count(Pointer<Engine> self)
    → int
  
  
- 
  
  
- 
  engine_get_playback_device_generation(Pointer<Engine> self)
    → int
  
  
- 
  
  
- 
  engine_get_playback_device_name(Pointer<Engine> self, int index, Pointer<Char> outName, int capName, Pointer<ma_bool32> pIsDefault)
    → int
  
  
- 
  
  
- 
  engine_init(Pointer<Engine> self, int period_ms)
    → int
  
  
- 
  
  
- 
  engine_load_sound(Pointer<Engine> self, Pointer<Sound> sound, Pointer<Float> data, int data_size, ma_format format, int sample_rate, int channels)
    → int
  
  
- 
  
  
- 
  engine_refresh_playback_devices(Pointer<Engine> self)
    → int
  
  
- 
  
  
- 
  engine_select_playback_device_by_index(Pointer<Engine> self, int index)
    → int
  
  
- 
  
  
- 
  engine_start(Pointer<Engine> self)
    → int
  
  
- 
  
  
- 
  engine_uninit(Pointer<Engine> self)
    → void
  
  
- 
  
  
- 
  generator_create()
    → Pointer<Generator>
  
  
- 
  
  
- 
  generator_destroy(Pointer<Generator> generator)
    → void
  
  
- 
  
  
- 
  generator_get_available_frames(Pointer<Generator> generator)
    → int
  
  
- 
  
  
- 
  generator_get_buffer(Pointer<Generator> generator, Pointer<Float> output, int floats_to_read)
    → int
  
  
- 
  
  
- 
  generator_get_pan(Pointer<Generator> self)
    → double
  
  
- 
  
  
- 
  generator_get_volume(Pointer<Generator> self)
    → double
  
  
- 
  
  
- 
  generator_init(Pointer<Generator> generator, ma_format format, int channels, int sample_rate, int buffer_duration_seconds)
    → GeneratorResult
  
  
- 
  
  
- 
  generator_set_noise(Pointer<Generator> generator, ma_noise_type type, int seed, double amplitude)
    → GeneratorResult
  
  
- 
  
  
- 
  generator_set_pan(Pointer<Generator> self, double value)
    → void
  
  
- 
  
  
- 
  generator_set_pulsewave(Pointer<Generator> generator, double frequency, double amplitude, double dutyCycle)
    → GeneratorResult
  
  
- 
  
  
- 
  generator_set_volume(Pointer<Generator> self, double value)
    → void
  
  
- 
  
  
- 
  generator_set_waveform(Pointer<Generator> generator, ma_waveform_type type, double frequency, double amplitude)
    → GeneratorResult
  
  
- 
  
  
- 
  generator_start(Pointer<Generator> generator)
    → GeneratorResult
  
  
- 
  
  
- 
  generator_stop(Pointer<Generator> generator)
    → GeneratorResult
  
  
- 
  
  
- 
  recorder_acquire_read_region(Pointer<Recorder> r, Pointer<Pointer<Void>> outPtr, Pointer<Int> outFrames)
    → int
  
  
- 
  
  
- 
  recorder_codec_config_opus_default()
    → RecorderCodecConfig
  
  
- 
  
  
- 
  recorder_commit_read_frames(Pointer<Recorder> r, int frames)
    → int
  
  
- 
  
  
- 
  recorder_config_default(int sampleRate, int channels, ma_format format)
    → RecorderConfig
  
  
- 
  
  
- 
  recorder_create()
    → Pointer<Recorder>
  
  
- 
  
  
- 
  recorder_destroy(Pointer<Recorder> r)
    → void
  
  
- 
  
  
- 
  recorder_free_capture_cache(Pointer<Recorder> r)
    → void
  
  
- 
  
  
- 
  recorder_get_available_frames(Pointer<Recorder> r)
    → int
  
  
- 
  
  
- 
  recorder_get_capture_device_count(Pointer<Recorder> r)
    → int
  
  
- 
  
  
- 
  recorder_get_capture_device_generation(Pointer<Recorder> r)
    → int
  
  
- 
  
  
- 
  recorder_get_capture_device_name(Pointer<Recorder> r, int index, Pointer<Char> outName, int capName, Pointer<ma_bool32> pIsDefault)
    → int
  
  
- 
  
  
- 
  recorder_get_capture_gain(Pointer<Recorder> r)
    → double
  
  
- 
  
  
- 
  recorder_get_codec(Pointer<Recorder> r)
    → RecorderCodec
  
  
- 
  
  
- 
  recorder_init(Pointer<Recorder> r, Pointer<RecorderConfig> cfg)
    → int
  
  
- 
  
  
- 
  recorder_is_recording(Pointer<Recorder> r)
    → int
  
  
- 
  
  
- 
  recorder_refresh_capture_devices(Pointer<Recorder> r)
    → int
  
  
- 
  
  
- 
  recorder_select_capture_device_by_index(Pointer<Recorder> r, int index)
    → int
  
  
- 
  
  
- 
  recorder_set_capture_gain(Pointer<Recorder> r, double gain)
    → void
  
  
- 
  
  
- 
  recorder_start(Pointer<Recorder> r)
    → int
  
  
- 
  
  
- 
  recorder_stop(Pointer<Recorder> r)
    → int
  
  
- 
  
  
- 
  recorder_update_codec_config(Pointer<Recorder> r, Pointer<RecorderCodecConfig> codecConfig)
    → int
  
  
- 
  
  
- 
  silence_data_source_config(ma_format format, Dartma_uint32 channel_count, Dartma_uint32 sample_rate, Dartma_uint64 len_frames)
    → SilenceDataSourceConfig
  
  
- 
  
  
- 
  silence_data_source_init(Pointer<SilenceDataSource> self, Pointer<SilenceDataSourceConfig> config)
    → int
  
  
- 
  
  
- 
  silence_data_source_uninit(Pointer<SilenceDataSource> self)
    → void
  
  
- 
  
  
- 
  sound_alloc()
    → Pointer<Sound>
  
  
- 
  
  
- 
  sound_free(Pointer<Sound> self)
    → void
  
  
- 
  
  
- 
  sound_get_duration(Pointer<Sound> self)
    → double
  
  
- 
  
  
- 
  sound_get_is_looped(Pointer<Sound> self)
    → bool
  
  
- 
  
  
- 
  sound_get_volume(Pointer<Sound> self)
    → double
  
  
- 
  
  
- 
  sound_init(Pointer<Sound> self, Pointer<Float> data, int data_size, ma_format format, int channels, int sample_rate, Pointer<ma_engine> engine)
    → int
  
  
- 
  
  
- 
  sound_pause(Pointer<Sound> self)
    → void
  
  
- 
  
  
- 
  sound_play(Pointer<Sound> self)
    → int
  
  
- 
  
  
- 
  sound_rebind_engine(Pointer<Sound> self, Pointer<ma_engine> newEngine)
    → 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
  
  
- 
  
  
- 
  stream_player_alloc()
    → Pointer<StreamPlayer>
  
  
- 
  
  
- 
  stream_player_clear(Pointer<StreamPlayer> sp)
    → void
  
  
- 
  
  
- 
  stream_player_config_default(int channels, int sampleRate)
    → StreamPlayerConfig
  
  
- 
  
  
- 
  stream_player_free(Pointer<StreamPlayer> sp)
    → void
  
  
- 
  
  
- 
  stream_player_get_pan(Pointer<StreamPlayer> sp)
    → double
  
  
- 
  
  
- 
  stream_player_get_volume(Pointer<StreamPlayer> sp)
    → double
  
  
- 
  
  
- 
  stream_player_init(Pointer<StreamPlayer> sp, Pointer<ma_engine> engine, Pointer<StreamPlayerConfig> cfg)
    → int
  
  
- 
  
  
- 
  stream_player_init_with_engine(Pointer<StreamPlayer> sp, Pointer<Void> engineWrapper, Pointer<StreamPlayerConfig> cfg)
    → int
  
  
- 
  
  
- 
  stream_player_push_encoded_packet(Pointer<StreamPlayer> sp, Pointer<Void> packet, int packetBytes)
    → int
  
  
- 
  
  
- 
  stream_player_set_pan(Pointer<StreamPlayer> sp, double pan)
    → void
  
  
- 
  
  
- 
  stream_player_set_volume(Pointer<StreamPlayer> sp, double volume)
    → void
  
  
- 
  
  
- 
  stream_player_start(Pointer<StreamPlayer> sp)
    → int
  
  
- 
  
  
- 
  stream_player_stop(Pointer<StreamPlayer> sp)
    → int
  
  
- 
  
  
- 
  stream_player_uninit(Pointer<StreamPlayer> sp)
    → void
  
  
- 
  
  
- 
  stream_player_write_frames_f32(Pointer<StreamPlayer> sp, Pointer<Float> frames, int frameCount)
    → int
  
  
- 
  
  
 
    
      Typedefs
      
          
  - 
  Dartma_async_notification
    = void
  
  
- 
  
  
- 
  Dartma_data_source
    = void
  
  
- 
  
  
- 
    Dartma_decoder_read_procFunction
      = ma_result Function(Pointer<ma_decoder> pDecoder, Pointer<Void> pBufferOut, int bytesToRead, Pointer<Size> pBytesRead)
    
    
  
- 
    
    
  
- 
    Dartma_decoder_seek_procFunction
      = ma_result Function(Pointer<ma_decoder> pDecoder, Dartma_int64 byteOffset, ma_seek_origin origin)
    
    
  
- 
    
    
  
- 
    Dartma_decoder_tell_procFunction
      = ma_result Function(Pointer<ma_decoder> pDecoder, Pointer<ma_int64> pCursor)
    
    
  
- 
    
    
  
- 
    Dartma_device_data_procFunction
      = void Function(Pointer<ma_device> pDevice, Pointer<Void> pOutput, Pointer<Void> pInput, Dartma_uint32 frameCount)
    
    
  
- 
    
    
  
- 
    Dartma_device_notification_procFunction
      = void Function(Pointer<ma_device_notification> pNotification)
    
    
  
- 
    
    
  
- 
    Dartma_engine_process_procFunction
      = void Function(Pointer<Void> pUserData, Pointer<Float> pFramesOut, Dartma_uint64 frameCount)
    
    
  
- 
    
    
  
- 
    Dartma_enum_devices_callback_procFunction
      = Dartma_uint32 Function(Pointer<ma_context> pContext, ma_device_type deviceType, Pointer<ma_device_info> pInfo, Pointer<Void> pUserData)
    
    
  
- 
    
    
  
- 
  Dartma_float
    = double
  
  
- 
  
  
- 
  Dartma_int16
    = int
  
  
- 
  
  
- 
  Dartma_int32
    = int
  
  
- 
  
  
- 
  Dartma_int64
    = int
  
  
- 
  
  
- 
    Dartma_job_procFunction
      = ma_result Function(Pointer<ma_job> pJob)
    
    
  
- 
    
    
  
- 
    Dartma_log_callback_procFunction
      = void Function(Pointer<Void> pUserData, Dartma_uint32 level, Pointer<Char> pMessage)
    
    
  
- 
    
    
  
- 
  Dartma_node
    = void
  
  
- 
  
  
- 
    Dartma_read_procFunction
      = ma_result Function(Pointer<Void> pUserData, Pointer<Void> pBufferOut, int bytesToRead, Pointer<Size> pBytesRead)
    
    
  
- 
    
    
  
- 
  Dartma_resampling_backend
    = void
  
  
- 
  
  
- 
    Dartma_seek_procFunction
      = ma_result Function(Pointer<Void> pUserData, Dartma_int64 offset, ma_seek_origin origin)
    
    
  
- 
    
    
  
- 
    Dartma_sound_end_procFunction
      = void Function(Pointer<Void> pUserData, Pointer<ma_sound> pSound)
    
    
  
- 
    
    
  
- 
    Dartma_stop_procFunction
      = void Function(Pointer<ma_device> pDevice)
    
    
  
- 
    
    
  
- 
    Dartma_tell_procFunction
      = ma_result Function(Pointer<Void> pUserData, Pointer<ma_int64> pCursor)
    
    
  
- 
    
    
  
- 
  Dartma_uint16
    = int
  
  
- 
  
  
- 
  Dartma_uint32
    = int
  
  
- 
  
  
- 
  Dartma_uint64
    = int
  
  
- 
  
  
- 
  Dartma_uint8
    = int
  
  
- 
  
  
- 
  Dartma_vfs
    = void
  
  
- 
  
  
- 
  Dartma_wchar_win32
    = int
  
  
- 
  
  
- 
  ma_async_notification
    = Void
  
  
- 
  
  
- 
  ma_bool32
    = ma_uint32
  
  
- 
  
  
- 
  ma_bool8
    = ma_uint8
  
  
- 
  
  
- 
  ma_channel
    = ma_uint8
  
  
- 
  
  
- 
  ma_data_source
    = Void
  
  
- 
  Data Source
  
- 
  ma_data_source_get_next_proc
    = Pointer<NativeFunction<ma_data_source_get_next_procFunction>>
  
  
- 
  
  
- 
    ma_data_source_get_next_procFunction
      = Pointer<ma_data_source> Function(Pointer<ma_data_source> pDataSource)
    
    
  
- 
    
    
  
- 
  ma_decoder_read_proc
    = Pointer<NativeFunction<ma_decoder_read_procFunction>>
  
  
- 
  
  
- 
    ma_decoder_read_procFunction
      = Int Function(Pointer<ma_decoder> pDecoder, Pointer<Void> pBufferOut, Size bytesToRead, Pointer<Size> pBytesRead)
    
    
  
- 
    
    
  
- 
  ma_decoder_seek_proc
    = Pointer<NativeFunction<ma_decoder_seek_procFunction>>
  
  
- 
  
  
- 
    ma_decoder_seek_procFunction
      = Int Function(Pointer<ma_decoder> pDecoder, ma_int64 byteOffset, UnsignedInt origin)
    
    
  
- 
    
    
  
- 
  ma_decoder_tell_proc
    = Pointer<NativeFunction<ma_decoder_tell_procFunction>>
  
  
- 
  
  
- 
    ma_decoder_tell_procFunction
      = Int Function(Pointer<ma_decoder> pDecoder, Pointer<ma_int64> pCursor)
    
    
  
- 
    
    
  
- 
  ma_device_data_proc
    = Pointer<NativeFunction<ma_device_data_procFunction>>
  
  
- 
  
  
- 
    ma_device_data_procFunction
      = Void Function(Pointer<ma_device> pDevice, Pointer<Void> pOutput, Pointer<Void> pInput, ma_uint32 frameCount)
    
    
  
- 
    
    
  
- 
  ma_device_notification_proc
    = Pointer<NativeFunction<ma_device_notification_procFunction>>
  
  
- 
  
  
- 
    ma_device_notification_procFunction
      = Void Function(Pointer<ma_device_notification> pNotification)
    
    
  
- 
    
    
  
- 
  ma_engine_process_proc
    = Pointer<NativeFunction<ma_engine_process_procFunction>>
  
  
- 
  
  
- 
    ma_engine_process_procFunction
      = Void Function(Pointer<Void> pUserData, Pointer<Float> pFramesOut, ma_uint64 frameCount)
    
    
  
- 
    
    
  
- 
  ma_enum_devices_callback_proc
    = Pointer<NativeFunction<ma_enum_devices_callback_procFunction>>
  
  
- 
  
  
- 
    ma_enum_devices_callback_procFunction
      = ma_bool32 Function(Pointer<ma_context> pContext, UnsignedInt deviceType, Pointer<ma_device_info> pInfo, Pointer<Void> pUserData)
    
    
  
- 
    
    
  
- 
  ma_event
    = ma_handle
  
  
- 
  
  
- 
  ma_float
    = Float
  
  
- 
  
  
- 
  ma_handle
    = Pointer<Void>
  
  
- 
  
  
- 
  ma_int16
    = Short
  
  
- 
  
  
- 
  ma_int32
    = Int
  
  
- 
  
  
- 
  ma_int64
    = LongLong
  
  
- 
  
  
- 
  ma_job_proc
    = Pointer<NativeFunction<ma_job_procFunction>>
  
  
- 
  
  
- 
    ma_job_procFunction
      = Int Function(Pointer<ma_job> pJob)
    
    
  
- 
    
    
  
- 
  ma_log_callback_proc
    = Pointer<NativeFunction<ma_log_callback_procFunction>>
  
  
- 
  
  
- 
    ma_log_callback_procFunction
      = Void Function(Pointer<Void> pUserData, ma_uint32 level, Pointer<Char> pMessage)
    
    
  
- 
    
    
  
- 
  ma_mutex
    = ma_handle
  
  
- 
  
  
- 
  ma_node
    = Void
  
  
- 
  
  
- 
  ma_proc
    = Pointer<Void>
  
  
- 
  
  
- 
  ma_ptr
    = Pointer<Void>
  
  
- 
  
  
- 
  ma_read_proc
    = Pointer<NativeFunction<ma_read_procFunction>>
  
  
- 
  
  
- 
    ma_read_procFunction
      = Int Function(Pointer<Void> pUserData, Pointer<Void> pBufferOut, Size bytesToRead, Pointer<Size> pBytesRead)
    
    
  
- 
    
    
  
- 
  ma_resampling_backend
    = Void
  
  
- 
  
  
- 
  ma_seek_proc
    = Pointer<NativeFunction<ma_seek_procFunction>>
  
  
- 
  
  
- 
    ma_seek_procFunction
      = Int Function(Pointer<Void> pUserData, ma_int64 offset, UnsignedInt origin)
    
    
  
- 
    
    
  
- 
  ma_semaphore
    = ma_handle
  
  
- 
  
  
- 
  ma_sound_end_proc
    = Pointer<NativeFunction<ma_sound_end_procFunction>>
  
  
- 
  
  
- 
    ma_sound_end_procFunction
      = Void Function(Pointer<Void> pUserData, Pointer<ma_sound> pSound)
    
    
  
- 
    
    
  
- 
  ma_spinlock
    = ma_uint32
  
  
- 
  
  
- 
  ma_stop_proc
    = Pointer<NativeFunction<ma_stop_procFunction>>
  
  
- 
  
  
- 
    ma_stop_procFunction
      = Void Function(Pointer<ma_device> pDevice)
    
    
  
- 
    
    
  
- 
  ma_tell_proc
    = Pointer<NativeFunction<ma_tell_procFunction>>
  
  
- 
  
  
- 
    ma_tell_procFunction
      = Int Function(Pointer<Void> pUserData, Pointer<ma_int64> pCursor)
    
    
  
- 
    
    
  
- 
  ma_thread
    = ma_handle
  
  
- 
  
  
- 
  ma_uint16
    = UnsignedShort
  
  
- 
  
  
- 
  ma_uint32
    = UnsignedInt
  
  
- 
  
  
- 
  ma_uint64
    = UnsignedLongLong
  
  
- 
  
  
- 
  ma_uint8
    = UnsignedChar
  
  
- 
  
  
- 
  ma_uintptr
    = ma_uint64
  
  
- 
  
  
- 
  ma_vfs
    = Void
  
  
- 
  VFS
  
- 
  ma_vfs_file
    = ma_handle
  
  
- 
  
  
- 
  ma_wchar_win32
    = WChar
  
  
-