We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9566f4 commit 7bd8237Copy full SHA for 7bd8237
src/decoder_xmp.c
@@ -54,6 +54,7 @@ struct xmp_callbacks {
54
MIX_LOADER_FUNCTION(true,void,xmp_end_player,(xmp_context)) \
55
MIX_LOADER_FUNCTION(true,void,xmp_get_module_info,(xmp_context, struct xmp_module_info *)) \
56
MIX_LOADER_FUNCTION(true,int,xmp_play_frame,(xmp_context)) \
57
+ MIX_LOADER_FUNCTION(true,int,xmp_play_buffer,(xmp_context, void *, int, int)) \
58
MIX_LOADER_FUNCTION(true,int,xmp_seek_time,(xmp_context, int)) \
59
MIX_LOADER_FUNCTION(true,void,xmp_get_frame_info,(xmp_context, struct xmp_frame_info *)) \
60
MIX_LOADER_FUNCTION(true,void,xmp_stop_module,(xmp_context)) \
@@ -264,6 +265,7 @@ static bool SDLCALL XMP_seek(void *track_userdata, Uint64 frame)
264
265
ms = 0;
266
}
267
const int err = libxmp.xmp_seek_time(tdata->ctx, (int) ms);
268
+ libxmp.xmp_play_buffer(tdata->ctx, NULL, 0, 0); // reset the internal state.
269
return err ? SetLibXmpError("xmp_seek_time", err) : true;
270
271
0 commit comments