comparison minijss/jssmod.h @ 1972:cedb5ca1533b

Clean up the sample conversion code a bit. Improve error handling in xm2jss.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 30 Jun 2018 18:44:59 +0300
parents b47109fce375
children 5cec199f49f8
comparison
equal deleted inserted replaced
1971:c27f7cd25684 1972:cedb5ca1533b
295 #endif 295 #endif
296 296
297 297
298 #ifndef JSS_LIGHT 298 #ifndef JSS_LIGHT
299 char * jssASCIItoStr(const char *src, const char endByte, const size_t len); 299 char * jssASCIItoStr(const char *src, const char endByte, const size_t len);
300 BOOL jssEncodeSample8(Uint8 *, const size_t, const int); 300 int jssEncodeSample8(Uint8 *, const size_t, const int);
301 BOOL jssEncodeSample16(Uint16 *, const size_t, const int); 301 int jssEncodeSample16(Uint16 *, const size_t, const int);
302 #endif 302 #endif
303 int jssDecodeSample8(Uint8 *, const size_t, const int); 303 int jssDecodeSample8(Uint8 *, const size_t, const int);
304 int jssDecodeSample16(Uint16 *, const size_t, const int); 304 int jssDecodeSample16(Uint16 *, const size_t, const int);
305 int jssConvertModuleForPlaying(JSSModule *module); 305 int jssConvertModuleForPlaying(JSSModule *module);
306 306