Convenience abstraction of xmrsplayer
This library crate is a convenience abstraction of xmrsplayer with only one goal in mind, to easily play XM files in your application without dealing with its internals.
If your use case requires more features or lower level control you may need to consider using xmrs or xmrsplayer directly.
Features
- Powered by
xmrsandcpal - Quickly play your favorite
.xmfile
Examples:
You can use modplay like this:
use ModPlay;
let data = read.unwrap;
new.run;
It is recommended to run from a separate thread:
use ModPlay;
spawn.join.unwrap
If you need to set some options you can use something like this:
use ModPlay;
let data = read.unwrap
new
.set_amplification
.set_loops
.set_sample_rate
.run;