I'm not sure if they are issues or not so before digging into a codebase that I don't know to find a problem that may not be one, I should first ask if other people encountered the issue.
1) The first issue I encountered is while playing songs. In general it works fine but depending which song is played first, the result is different. For example, song A always work fine. Song B works fine after song A. If song B is played first, it's like some channel are not "active" yet.
Inside Famitracker the song is fine but not with the driver. If a sound fx is played then the channel works. Maybe it's a envelop not set thing, I'm not sure yet.
2) Another issue but I need to re-test in what situation, if the song comes to an end by itself, some issues occur. I forgot if sfx don't work anymore or the next song is affected. I will retest and update that issue later.
3) Last one, the issue I had with more than 256 bytes, if I play manually both channel at the same time it actually works but when a song is actually playing, sometime the sfx is not played properly. If no music, it always works fine, which give me the impression that this issue could happen with other sfx in the future.
Those are the issues I have and that I need to investigate the cause. For sfx, when I first tried to do it myself with driver 3.0, I remember modifying the famitracker driver to "stop" a channel from playing. I had a binary mask that told which channel should be stopped. I think the current example from Shiru may not be doing that and just put data of SFX over music data, which could be the cause of #3. I will try to dug up the code I did to retry to stop a channel that way but I'm not sure if the current famitone sfx driver is aware "when" a sfx finish. If not, I won't be able to re-use that way of stopping channel.
Thank you for any information on the subject.
1) The first issue I encountered is while playing songs. In general it works fine but depending which song is played first, the result is different. For example, song A always work fine. Song B works fine after song A. If song B is played first, it's like some channel are not "active" yet.
Inside Famitracker the song is fine but not with the driver. If a sound fx is played then the channel works. Maybe it's a envelop not set thing, I'm not sure yet.
2) Another issue but I need to re-test in what situation, if the song comes to an end by itself, some issues occur. I forgot if sfx don't work anymore or the next song is affected. I will retest and update that issue later.
3) Last one, the issue I had with more than 256 bytes, if I play manually both channel at the same time it actually works but when a song is actually playing, sometime the sfx is not played properly. If no music, it always works fine, which give me the impression that this issue could happen with other sfx in the future.
Those are the issues I have and that I need to investigate the cause. For sfx, when I first tried to do it myself with driver 3.0, I remember modifying the famitracker driver to "stop" a channel from playing. I had a binary mask that told which channel should be stopped. I think the current example from Shiru may not be doing that and just put data of SFX over music data, which could be the cause of #3. I will try to dug up the code I did to retry to stop a channel that way but I'm not sure if the current famitone sfx driver is aware "when" a sfx finish. If not, I won't be able to re-use that way of stopping channel.
Thank you for any information on the subject.