FunctionsAndGlobals constructor

FunctionsAndGlobals(
  1. DynamicLibrary _dynamicLibrary
)

Implementation

FunctionsAndGlobals(ffi.DynamicLibrary _dynamicLibrary)
    : _opus_decoder_get_size = _dynamicLibrary.lookupFunction<
          _opus_decoder_get_size_C, _opus_decoder_get_size_Dart>(
        'opus_decoder_get_size',
      ),
      _opus_decoder_create = _dynamicLibrary
          .lookupFunction<_opus_decoder_create_C, _opus_decoder_create_Dart>(
        'opus_decoder_create',
      ),
      _opus_decoder_init = _dynamicLibrary
          .lookupFunction<_opus_decoder_init_C, _opus_decoder_init_Dart>(
        'opus_decoder_init',
      ),
      _opus_decode =
          _dynamicLibrary.lookupFunction<_opus_decode_C, _opus_decode_Dart>(
        'opus_decode',
      ),
      _opus_decode_float = _dynamicLibrary
          .lookupFunction<_opus_decode_float_C, _opus_decode_float_Dart>(
        'opus_decode_float',
      ),
      _opus_decoder_destroy = _dynamicLibrary.lookupFunction<
          _opus_decoder_destroy_C, _opus_decoder_destroy_Dart>(
        'opus_decoder_destroy',
      ),
      _opus_packet_parse = _dynamicLibrary
          .lookupFunction<_opus_packet_parse_C, _opus_packet_parse_Dart>(
        'opus_packet_parse',
      ),
      _opus_packet_get_bandwidth = _dynamicLibrary.lookupFunction<
          _opus_packet_get_bandwidth_C, _opus_packet_get_bandwidth_Dart>(
        'opus_packet_get_bandwidth',
      ),
      _opus_packet_get_samples_per_frame = _dynamicLibrary.lookupFunction<
          _opus_packet_get_samples_per_frame_C,
          _opus_packet_get_samples_per_frame_Dart>(
        'opus_packet_get_samples_per_frame',
      ),
      _opus_packet_get_nb_channels = _dynamicLibrary.lookupFunction<
          _opus_packet_get_nb_channels_C, _opus_packet_get_nb_channels_Dart>(
        'opus_packet_get_nb_channels',
      ),
      _opus_packet_get_nb_frames = _dynamicLibrary.lookupFunction<
          _opus_packet_get_nb_frames_C, _opus_packet_get_nb_frames_Dart>(
        'opus_packet_get_nb_frames',
      ),
      _opus_packet_get_nb_samples = _dynamicLibrary.lookupFunction<
          _opus_packet_get_nb_samples_C, _opus_packet_get_nb_samples_Dart>(
        'opus_packet_get_nb_samples',
      ),
      _opus_decoder_get_nb_samples = _dynamicLibrary.lookupFunction<
          _opus_decoder_get_nb_samples_C, _opus_decoder_get_nb_samples_Dart>(
        'opus_decoder_get_nb_samples',
      ),
      _opus_pcm_soft_clip = _dynamicLibrary
          .lookupFunction<_opus_pcm_soft_clip_C, _opus_pcm_soft_clip_Dart>(
        'opus_pcm_soft_clip',
      );