Move jar_xm_reset to jar_xm.h

This commit is contained in:
Wilhem Barbier 2019-05-23 16:40:15 +02:00
parent 78817305c5
commit dec604bd71
2 changed files with 16 additions and 15 deletions

View file

@ -1314,20 +1314,6 @@ void ResumeMusicStream(Music music)
if (music != NULL) ResumeAudioStream(music->stream);
}
void jar_xm_reset(jar_xm_context_t* ctx)
{
// I don't know what I am doing
// this is probably very broken
// but it kinda works
for (uint16_t i = 0; i < jar_xm_get_number_of_channels(ctx); i++)
{
jar_xm_cut_note(&ctx->channels[i]);
}
ctx->current_row = 0;
ctx->current_table_index = 1;
ctx->current_tick = 0;
}
// Stop music playing (close stream)
// TODO: To clear a buffer, make sure they have been already processed!
void StopMusicStream(Music music)