10 Commits

Author SHA1 Message Date
Claudio Matsuoka
be34b3c5e1 Add prefix to scan and other functions
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-10-03 11:13:03 -03:00
Claudio Matsuoka
21f1636e42 Add prefix to local functions
tjosk reports:

"seriously, you wrote it as a lib, but are using too generic function names
 (and i dont even want to think if there are global variables/defs that might
 conflict too). some time ago i've reported that libxmp defines 'inflate'
 function which is also used in libz (my quick fix was to change all
 occurances of 'inflate' to 'xmp_inflate'). now there is another:

 /1/_src/oscp/local/usr/local/lib/libxmp.a(mix_paula.o): In function `paula_init':
 mix_paula.c:(.text.paula_init+0x0): multiple definition of `paula_init'
 /1/_src/oscp/local/usr/local/lib/libsc68.a(paulaemul.o):paulaemul.c:(.text.paula_init+0x0): first defined here
 collect2: error: ld returned 1 exit status

 both things can be simply renamed in libxmp without breaking anything. please do!"

 Add libxmp_ prefix to some local functions to prevent namespace clashes when
 statically linking the library.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-09-30 19:55:22 -03:00
Claudio Matsuoka
b923064605 [test] Fix tests using MDL c5spd
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-08-21 23:44:41 -03:00
Claudio Matsuoka
5488713f10 Use a period type field instead of quirks
Instead of using linear and mod range quirks, use a dedicated period type
file. This can be also used to frequency-based formats such as 669.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2016-07-03 22:10:33 -03:00
Claudio Matsuoka
cd6e8907ab [test] Address clang address sanitizer warning
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-05-27 15:38:38 -03:00
Claudio Matsuoka
dfebefebea [test] Update envelope-related tests
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-04-03 22:11:19 -03:00
Claudio Matsuoka
620cca4521 Don't alloc memory in module scan calls
Move memory allocation in module scan functions to load epilogue to avoid
testing and handling allocation errors during module replay.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-10-05 15:01:54 -03:00
Claudio Matsuoka
78c8787966 [test] Use allocation functions in module testing
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-10-04 12:16:25 -03:00
Claudio Matsuoka
e947a8c09b Add player states
The player can be in one of the following states:

XMP_STATE_UNLOADED: after context creation or module release
XMP_STATE_LOADED  : when a module is loaded but not playing
XMP_STATE_PLAYING : when a module is loaded and playing

Tracking the player state also allows us to proper end the player and
release the module if xmp_free_context() is called during replay, (or
end the player if xmp_release_module() is called).

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-06-06 16:30:20 -03:00
Claudio Matsuoka
8d16103fed Rename compreensive test suite to test-dev
The regression test suite is important for development but for end user
tests a simpler check is sufficient.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-05-18 11:18:52 -03:00