xmp.h   xmp.h 
#ifndef XMP_H #ifndef XMP_H
#define XMP_H #define XMP_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#define XMP_VERSION "4.0.4" #define XMP_VERSION "4.1.0"
#define XMP_VERCODE 0x040004 #define XMP_VERCODE 0x040100
#define XMP_VER_MAJOR 4 #define XMP_VER_MAJOR 4
#define XMP_VER_MINOR 0 #define XMP_VER_MINOR 1
#define XMP_VER_RELEASE 4 #define XMP_VER_RELEASE 0
#if defined(_WIN32) || defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
# ifdef BUILDING_DLL # ifdef BUILDING_DLL
# define EXPORT __declspec(dllexport) # define EXPORT __declspec(dllexport)
# else # else
# define EXPORT __declspec(dllimport) # define EXPORT __declspec(dllimport)
# endif # endif
#elif __GNUC__ >= 4 || defined(__HP_cc) #elif __GNUC__ >= 4 || defined(__HP_cc)
# define EXPORT __attribute__((visibility ("default"))) # define EXPORT __attribute__((visibility ("default")))
#elif defined(__SUNPRO_C) #elif defined(__SUNPRO_C)
# define EXPORT __global # define EXPORT __global
#else #else
skipping to change at line 47 skipping to change at line 47
#define XMP_FORMAT_8BIT (1 << 0) /* Mix to 8-bit instead of 16 */ #define XMP_FORMAT_8BIT (1 << 0) /* Mix to 8-bit instead of 16 */
#define XMP_FORMAT_UNSIGNED (1 << 1) /* Mix to unsigned samples */ #define XMP_FORMAT_UNSIGNED (1 << 1) /* Mix to unsigned samples */
#define XMP_FORMAT_MONO (1 << 2) /* Mix to mono instead of s tereo */ #define XMP_FORMAT_MONO (1 << 2) /* Mix to mono instead of s tereo */
/* mixer paramters for xmp_set_player() */ /* mixer paramters for xmp_set_player() */
#define XMP_PLAYER_AMP 0 /* Amplification factor */ #define XMP_PLAYER_AMP 0 /* Amplification factor */
#define XMP_PLAYER_MIX 1 /* Stereo mixing */ #define XMP_PLAYER_MIX 1 /* Stereo mixing */
#define XMP_PLAYER_INTERP 2 /* Interpolation type */ #define XMP_PLAYER_INTERP 2 /* Interpolation type */
#define XMP_PLAYER_DSP 3 /* DSP effect flags */ #define XMP_PLAYER_DSP 3 /* DSP effect flags */
#define XMP_PLAYER_FLAGS 4 /* Player flags */ #define XMP_PLAYER_FLAGS 4 /* Player flags */
#define XMP_PLAYER_CFLAGS 5 /* Player flags for current module *
/
#define XMP_PLAYER_SMPCTL 6 /* Sample control flags */
/* interpolation types */ /* interpolation types */
#define XMP_INTERP_NEAREST 0 /* Nearest neighbor */ #define XMP_INTERP_NEAREST 0 /* Nearest neighbor */
#define XMP_INTERP_LINEAR 1 /* Linear (default) */ #define XMP_INTERP_LINEAR 1 /* Linear (default) */
#define XMP_INTERP_SPLINE 2 /* Cubic spline */ #define XMP_INTERP_SPLINE 2 /* Cubic spline */
/* dsp effect types */ /* dsp effect types */
#define XMP_DSP_LOWPASS (1 << 0) /* Lowpass filter effect */ #define XMP_DSP_LOWPASS (1 << 0) /* Lowpass filter effect */
#define XMP_DSP_ALL (XMP_DSP_LOWPASS) #define XMP_DSP_ALL (XMP_DSP_LOWPASS)
/* player flags */ /* player flags */
#define XMP_FLAGS_VBLANK (1 << 0) /* Use vblank timing */ #define XMP_FLAGS_VBLANK (1 << 0) /* Use vblank timing */
#define XMP_FLAGS_FX9BUG (1 << 1) /* Emulate FX9 bug */ #define XMP_FLAGS_FX9BUG (1 << 1) /* Emulate FX9 bug */
#define XMP_FLAGS_FIXLOOP (1 << 2) /* Emulate sample loop bug */ #define XMP_FLAGS_FIXLOOP (1 << 2) /* Emulate sample loop bug */
/* sample flags */
#define XMP_SMPCTL_SKIP (1 << 0) /* Don't load samples */
/* limits */ /* limits */
#define XMP_MAX_KEYS 121 /* Number of valid keys */ #define XMP_MAX_KEYS 121 /* Number of valid keys */
#define XMP_MAX_ENV_POINTS 32 /* Max number of envelope points */ #define XMP_MAX_ENV_POINTS 32 /* Max number of envelope points */
#define XMP_MAX_MOD_LENGTH 256 /* Max number of patterns in module */ #define XMP_MAX_MOD_LENGTH 256 /* Max number of patterns in module */
#define XMP_MAX_CHANNELS 64 /* Max number of channels in module */ #define XMP_MAX_CHANNELS 64 /* Max number of channels in module */
#define XMP_MAX_SRATE 48000 /* max sampling rate (Hz) */ #define XMP_MAX_SRATE 49170 /* max sampling rate (Hz) */
#define XMP_MIN_SRATE 4000 /* min sampling rate (Hz) */
#define XMP_MIN_BPM 20 /* min BPM */ #define XMP_MIN_BPM 20 /* min BPM */
/* frame rate = (50 * bpm / 125) Hz */ /* frame rate = (50 * bpm / 125) Hz */
/* frame size = (sampling rate * channels * size) / frame rate */ /* frame size = (sampling rate * channels * size) / frame rate */
#define XMP_MAX_FRAMESIZE (5 * XMP_MAX_SRATE * 2 / XMP_MIN_BPM) #define XMP_MAX_FRAMESIZE (5 * XMP_MAX_SRATE * 2 / XMP_MIN_BPM)
/* error codes */ /* error codes */
#define XMP_END 1 #define XMP_END 1
#define XMP_ERROR_INTERNAL 2 /* Internal error */ #define XMP_ERROR_INTERNAL 2 /* Internal error */
#define XMP_ERROR_FORMAT 3 /* Unsupported module format */ #define XMP_ERROR_FORMAT 3 /* Unsupported module format */
#define XMP_ERROR_LOAD 4 /* Error loading file */ #define XMP_ERROR_LOAD 4 /* Error loading file */
skipping to change at line 280 skipping to change at line 286
EXPORT extern const unsigned int xmp_vercode; EXPORT extern const unsigned int xmp_vercode;
EXPORT xmp_context xmp_create_context (void); EXPORT xmp_context xmp_create_context (void);
EXPORT void xmp_free_context (xmp_context); EXPORT void xmp_free_context (xmp_context);
EXPORT int xmp_test_module (char *, struct xmp_test_info *); EXPORT int xmp_test_module (char *, struct xmp_test_info *);
EXPORT int xmp_load_module (xmp_context, char *); EXPORT int xmp_load_module (xmp_context, char *);
EXPORT void xmp_scan_module (xmp_context); EXPORT void xmp_scan_module (xmp_context);
EXPORT void xmp_release_module (xmp_context); EXPORT void xmp_release_module (xmp_context);
EXPORT int xmp_start_player (xmp_context, int, int); EXPORT int xmp_start_player (xmp_context, int, int);
EXPORT int xmp_play_frame (xmp_context); EXPORT int xmp_play_frame (xmp_context);
EXPORT int xmp_play_buffer (xmp_context, void *, int, int);
EXPORT void xmp_get_frame_info (xmp_context, struct xmp_frame_info *); EXPORT void xmp_get_frame_info (xmp_context, struct xmp_frame_info *);
EXPORT void xmp_end_player (xmp_context); EXPORT void xmp_end_player (xmp_context);
EXPORT void xmp_inject_event (xmp_context, int, struct xmp_event *); EXPORT void xmp_inject_event (xmp_context, int, struct xmp_event *);
EXPORT void xmp_get_module_info (xmp_context, struct xmp_module_info *); EXPORT void xmp_get_module_info (xmp_context, struct xmp_module_info *);
EXPORT char **xmp_get_format_list (void); EXPORT char **xmp_get_format_list (void);
EXPORT int xmp_next_position (xmp_context); EXPORT int xmp_next_position (xmp_context);
EXPORT int xmp_prev_position (xmp_context); EXPORT int xmp_prev_position (xmp_context);
EXPORT int xmp_set_position (xmp_context, int); EXPORT int xmp_set_position (xmp_context, int);
EXPORT void xmp_stop_module (xmp_context); EXPORT void xmp_stop_module (xmp_context);
EXPORT void xmp_restart_module (xmp_context); EXPORT void xmp_restart_module (xmp_context);
 End of changes. 7 change blocks. 
6 lines changed or deleted 14 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/