Make naming consistent for API calls, so:
xmp_player_start -> xmp_start_player
xmp_player_end -> xmp_end_player
xmp_player_get_info -> xmp_get_frame_info
xmp_mixer_set -> xmp_set_mixer
xmp_mixer_get -> xmp_get_mixer
Also renamed:
xmp_module_info -> xmp_frame_info
because its information is mostly about frame-specific data.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
The previous stable release of the player (xmp 3.5.0) had option -r
to reverse stereo channels. This option was temporarily removed during
libification to simplify the code base.
Reverse channels option was reimplemented by simply accepting negative
mixing parameters.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Port the configuration file reader from xmp 3.5 to 4.0. Module-specific
configuration still not ported.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Default interpolation algorithm set to cubic spline. Also remove direct
option --nearest/-n to set nearest neighbor interpolation.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Follow Mirko Buffoni's advice to add extra mixers with better interpolation
algorithms. Start adding cubic spline based on Storlek's implementation, still
need to fix sample allocation values to prevent violations when reading
the -1 PCM data.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Add DSP flags to mixer and generalize the existing lowpass filter as a
DSP effect. Reverb and chorus effects (used in e.g. IMF) can be added
to the list later.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
- change XMP_FORMAT_* to XMP_MIX_* because they're actually mixer parameters
and not only sample format flags
- briefly document the essential parts of the API in README
- update the player application to use the new API
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Use number of samples in loop otherwise Samples are garbled (you copy-pasted
mod->ins as sample numbers) (fixed by Mirko Buffoni)
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Adjust options to preserve compatibility with xmp 3.5.0 when possible
(e.g. -n for nearest neighbor), document them in manpage.
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
- remove interface for funk-it and fx9 bug emulation quirks. These are rare
and the interface definition wasn't good. Re-add later if needed.
- Set version number to 3.9.0. Release to a limited audience and fix problems
for public 4.0.0
- Cosmetic fixes
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>