Audio::MikMod - Perl extension for libmikmod.
use Audio::MikMod qw(:all); use Time::HiRes; MikMod_RegisterAllDrivers(); MikMod_RegisterAllLoaders(); MikMod_Init(); my $module = Player_Load('filename', 64, 0); Player_Start($module); while(Player_Active()) { usleep(10000); MikMod_Update(); } Player_Stop(); Player_Free($module); MikMod_Exit();
This module provides an interface to the libmikmod library for playing MOD, IT, XM, S3M, MTM, 669, STM, ULT, FAR, MED, AMF, DSM, IMF, GDM, and STX tracker files. In addition, manipulation of WAV samples is supported.
Please see the extensive libmikmod info documentation included with that package.
libmikmod is required, and can be obtained at http://mikmod.darkorb.net/
Daniel Sully <daniel-cpan-mikmod@electricrain.com>
info mikmod, perl(1).
To install Audio::MikMod, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::MikMod
CPAN shell
perl -MCPAN -e shell install Audio::MikMod
For more information on module installation, please visit the detailed CPAN module installation guide.