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

Dart bindings for libopusfile, for decoding ogg opus files.

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
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

Dart bindings for libopusfile, for decoding ogg opus files.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi

More

Packages that depend on dart_opusfile