Disable looping MOD files played with libmikmod. Many MODs will loop
forever without this. git-svn-id: https://svn.musicpd.org/mpd/trunk@5790 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
ed5f2c195a
commit
5a734c0172
@ -148,6 +148,9 @@ static mod_Data *mod_open(char *path)
|
||||
if (!(moduleHandle = Player_Load(path, 128, 0)))
|
||||
return NULL;
|
||||
|
||||
/* Prevent module from looping forever */
|
||||
moduleHandle->loop = 0;
|
||||
|
||||
data = xmalloc(sizeof(mod_Data));
|
||||
|
||||
data->audio_buffer = xmalloc(MIKMOD_FRAME_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user