dart_opusfile 1.1.1 copy "dart_opusfile: ^1.1.1" to clipboard
dart_opusfile: ^1.1.1 copied to clipboard

Dart bindings for libopusfile, for decoding ogg opus files into pcm data.

example/dart_opusfile_example.dart

import "dart:io";
import 'package:dart_opusfile/dart_opusfile.dart';

void main() {
  /// Initialize the bindings.
  final Opus opus = Opus("opusfile.dll");

  /// Decode a file.
  final OpusFile decodedFile = opus.decodeFile("test.opus");
  print(decodedFile.channels);
  print(decodedFile.rate);
  print(decodedFile.data.length);
  File("./test.pcm").writeAsBytesSync(decodedFile.data);
  print("Done");
}
1
likes
150
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

Dart bindings for libopusfile, for decoding ogg opus files into pcm data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

LGPL-3.0 (license)

Dependencies

ffi

More

Packages that depend on dart_opusfile