I have an xm that currently has 3 songs in one and I use SetPosition() to change which song is playing. I'm curious is it possible to have two separate xm's share samples to save memory? In that case I could split them into separate modules.
One other question is when I stop a song in the callback No$ crashes. Is it not possible to stop a song in the callback?
This is for the DS. Thanks.
Sample sharing and callback questions
Moderator: eKid
Re: Sample sharing and callback questions
mmutil removes duplicate samples from the resulting soundbank, so you can split the songs into multiple XM's with duplicated samples and only one of each will be stored. (and you can also store duplicate samples inside the same XM and they will be removed, this is sometimes necessary because XM can't share samples between instruments)
You can't stop the module inside the callback, it's called from inside the update routine so it's unsafe. You'll have to stop it from outside somehow.
You can't stop the module inside the callback, it's called from inside the update routine so it's unsafe. You'll have to stop it from outside somehow.
Re: Sample sharing and callback questions
Thanks for the info much appreciated
-
- Posts: 1
- Joined: Tue Nov 17, 2009 7:11 pm
Re: Sample sharing and callback questions
I appreciate the info, too. I've actually been watching this topic because I happened to want to know the same thing at about the same time this was posted.
Who is online
Users browsing this forum: No registered users and 0 guests