192 Commits

Author SHA1 Message Date
Ozkan Sezer
5f04bc0cd4 xmp.h: move emscripten.h include out of the 'extern "C" {}' block.
Fixes: https://github.com/libxmp/libxmp/issues/418
thanks to Gabriel.
2021-07-12 23:50:20 +03:00
AliceLR
2213f95388 Add close_func to xmp_callbacks, cleanup callbackio.h. 2021-06-06 15:37:08 -06:00
AliceLR
9a89fbd315 Implement xmp_*_module_from_callbacks API functions. 2021-06-05 19:05:00 -06:00
Ozkan Sezer
839a4f14e1 added xmp_syserrno() to libxmp api.
To be used to retrieve errno upon receiving -XMP_ERROR_SYSTEM from
a libxmp function call. Useful when either libxmp or its client is
statically linked to libc.

Closes: https://github.com/libxmp/libxmp/issues/335
2021-03-27 23:03:50 +03:00
Ozkan Sezer
4190b5ddcc constified xmp_load_module_from_memory and xmp_test_module_from_memory. 2021-02-07 17:56:10 +03:00
Ozkan Sezer
328b935e78 further Emscripten build fixes 2020-11-30 15:05:37 +03:00
Wohlstand
35a920b4c4 Emscripten build fix
I made this fix at 27'th September 2019 while experimenting
with the Emscripten thing. Unfortunately, external variables don't like
the given export flag. Also, the build fails when emscripten.h wasn't included.
2020-11-29 22:42:45 +03:00
AliceLR
bf48b06289 Implement changes requested by sezero, remove unused variable. 2020-11-17 02:46:55 -07:00
AliceLR
eff3c48e7d Add xmp_test_module_from_memory and xmp_test_module_from_file.
Squashed commit of the following:

commit 03e645679e206e24a358da28bd32f6b464841304
Author: Ghabry <gabriel+github@mastergk.de>
Date:   Thu Jan 3 22:20:10 2019 +0100

    Add tests for module_from_file and module_from_memory

commit 8aad4d4abae92e8061307f8d94a65fb147d423b8
Author: Ghabry <gabriel+github@mastergk.de>
Date:   Thu Jan 3 21:03:38 2019 +0100

    Add xmp_test_module_from_memory and xmp_test_module_from_file

Co-authored-by: Ghabry <gabriel+github@mastergk.de>
2020-11-17 01:54:26 -07:00
Ozkan Sezer
73106b6d24 constify path parameters of public api. (affects API but not ABI.)
Closes: #194
2020-11-06 15:33:02 +03:00
Ozkan Sezer
d1aee8b35c xmp.h: move channel info comment to its correct place after commit 6de86a1086 2020-11-06 15:11:10 +03:00
AliceLR
ff818d7033 Change return type of xmp_get_format_list to const char *const *.
Closes: #193.
2020-11-06 11:46:09 +03:00
Ozkan Sezer
6de86a1086 xmp.h: move xmp_subinstrument and xmp_channel_info structs out of xmp_instrument and xmp_frame respectively.
Should improve C/C++ interoperability.  Closes: #191.
2020-11-06 11:35:28 +03:00
Ozkan Sezer
cb5fe459c1 make xmp_get_format_list() to return const char **
Closes: #192
2020-11-06 11:29:40 +03:00
Claudio Matsuoka
7a5886fefd Update version number
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2018-12-09 11:15:34 -02:00
Claudio Matsuoka
b1fb1ee84a Add API call to modify the tempo multiplicator
This call is intended to modify the replay tempo of a module without
changing the tempo value directly (which could be overriden by a tempo
setting command in the module itself).

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2018-12-09 11:01:13 -02:00
Claudio Matsuoka
061c6e5df5 Merge branch 'xmp_set_row' of https://github.com/NoSuck/libxmp into NoSuck-xmp_set_row
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2018-12-09 10:29:37 -02:00
The Flying Rapist
c3eb0d0ca4 API Addition: xmp_set_row
This patch adds code, documentation, and unit testing for a new function, xmp_set_row, as discussed in issue #100.  I must confess, however, that I do not fully understand the purpose of the final if block in set_position, which is the reason I had to make a special case for a negative pos member of player_data.

Please review and share your thoughts.  Thank you for maintaining libxmp.
2017-10-13 23:37:01 -04:00
sezero
ac8d3a725f rename EXPORT to LIBXMP_EXPORT
EXPORT is a dangerously common name
2017-07-26 08:55:00 +03:00
sezero
5ca71943bc xmp.h: provide an expansion of EXPORT macro for when building a dll for OS/2 using Watcom and its -bd switch 2016-12-08 22:42:47 +03:00
sezero
c98bceb235 move -fvisibility=hidden (or -xldscope=hidden) from LDFLAGS to CFLAGS:
moving them to LDFLAGS in commit 518f688 should be unintended.  if the
flags are supported, define XMP_SYM_VISIBILITY or XMP_LDSCOPE_GLOBAL
to signal xmp.h for it.  define USE_VERSIONED_SYMBOLS in common.h only
if XMP_SYM_VISIBILITY is defined, otherwise building with a gcc without
visibility attributes support fails.

build tested with:
- Linux: gcc-4.3.0,  4.9.4,  3.4.6 (redhat, with visibility attributes
  backport),  3.3.6,  2.95.4.  clang-3.4.2
- MinGW[-w64]: gcc-4.5.4,  3.4.5
- Darwin: gcc-4.0.1 (build 5494),  4.2.1 (build 5666 dot 3)
- DJGPP: gcc-3.4.6
2016-12-02 08:17:18 -02:00
Claudio Matsuoka
f573488cf2 Update version and changelog
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-10-14 09:15:49 -03:00
Claudio Matsuoka
6d1fa98306 Update version number
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-10-02 21:26:58 -03:00
Claudio Matsuoka
c1da3ac945 Change classic mixer to Amiga 500 mixer
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-07-15 16:06:04 -03:00
Claudio Matsuoka
5e0b97eaba Normalize periods in mixer and player
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-07-11 22:31:24 -03:00