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_moduleOpenMPT::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.