Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 987 Bytes

File metadata and controls

39 lines (28 loc) · 987 Bytes

opus_codec_windows

The Windows implementation of opus_codec.

Usage

Import the package

This package has been endorsed, meaning that you only need to add opus_codec as a dependency in your pubspec.yaml. It will be automatically included in your app when you depend on package:opus_codec.

This is what the above means to your pubspec.yaml:

...
dependencies:
  ...
  opus_codec: ^3.0.0
  ...

If you wish to use the Windows package only, you can add opus_codec_windows as a dependency:

...
dependencies:
  ...
  opus_codec_windows: ^3.0.0
  ...

How opus is included

Prebuilt opus DLLs for x86 and x64 architectures are cross-compiled via Docker and shipped as Flutter assets. At runtime the correct DLL is copied to a temporary directory using path_provider and loaded with DynamicLibrary.open(). The build commands are in the Dockerfile.