Bindings

NAME

OpenMPT::Bindings - Raku bindings for libopenmpt (module music rendering)

SYNOPSIS


use OpenMPT::Bindings::Module;

my $mod = OpenMPT::Bindings::Module.from-file('song.mod');
say "Title: { $mod.title }";
say "Artist: { $mod.artist }";
say "Duration: { $mod.duration } seconds";

my ($count, $left, $right) = $mod.read-float-stereo(48000, 1024);
say "Rendered $count frames";

DESCRIPTION

OpenMPT::Bindings provides Raku NativeCall bindings for libopenmpt, a library for rendering tracker music (MOD, XM, S3M, IT, MPTM, etc.) to PCM audio.

Note: use OpenMPT::Bindings does not import sub-module symbols. Import the module you need directly, e.g. use OpenMPT::Bindings::Module.

SUB-MODULES

  • OpenMPT::Bindings::Module — OOP wrapper around openmpt_module

  • OpenMPT::Bindings::ModuleExt — Extension API (interactive playback, patterns)

  • OpenMPT::Bindings::Types — Enums and constants

  • OpenMPT::Bindings::Native — Raw NativeCall subroutine declarations

  • OpenMPT::Bindings::NativeLib — Platform library path resolution

  • OpenMPT::Bindings::Util — Utility functions (pointer-to-blob, wav-header, fmt-time)

  • X::OpenMPT::Bindings — Exception class

AUTHOR

Sasha Abbott <[email protected]>

COPYRIGHT AND LICENSE

This software is dedicated to the public domain under the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication.

OpenMPT::Bindings v0.0.3

Raku bindings for libopenmpt (module music rendering)

Authors

  • Sasha Abbott

License

CC0-1.0

Dependencies

Test Dependencies

Provides

  • OpenMPT::Bindings
  • OpenMPT::Bindings::Exception
  • OpenMPT::Bindings::Module
  • OpenMPT::Bindings::ModuleExt
  • OpenMPT::Bindings::Native
  • OpenMPT::Bindings::NativeLib
  • OpenMPT::Bindings::Types
  • OpenMPT::Bindings::Util

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.