Log In  

Cart #resmguse-0 | 2024-02-04 | Code ▽ | Embed ▽ | No License
1


Hi, I found some strange behaviors with sfx and music that looks like bugs
( I marked with "X" when it's behaving strangely)

bug 1: releasing loop of an sfx:

  • play a looping sfx
  • release it's loop: sfx(-2)
  • the sfx will complete it's loop and then stop emitting sound
    X but if you check with "stat" you can see that the sfx is still "playing" with no sound
    X it can still block a channel that the music will not be able to use, for ever until it's replaced by another sfx

bug 2: playing a sfx that is already playing in the music

  • play a looping music that contain a specific non-looping sfx using music()
  • play the same sfx using sfx()
  • the sfx will play over the music's channel with the same sfx
    X the music's sfx will not start again once the sfx ended
    X whatever channel was playing the sfx is now blocked forever from playing music, even when going to the next pattern
    X the stat for music still show that music is still playing even if you cannot ear it
    X a new call to music() will be the only way to make the channel working normally again

I understand that those corner cases are rarely used so I get why it's not being a major problem, but I still think it can give some very strange behavior to the sound, potentially blocking all of the music

P#141108 2024-02-04 13:38 ( Edited 2024-02-04 14:07)


[Please log in to post a comment]