PlaySound /PlaySoundLoop

321k · 316

321k

  • Jr. Member
  • **
    • Posts: 15
on: February 22, 2021, 04:12:26 am
I've a question regarding the 3 commands
PlaySound / PlaySoundAtPosition vs. PlaySoundLoop.

The sounds in http://knucklecracker.com/wiki/doku.php?id=4rpl:commands:sounds are categorized as "Discrete Sounds" and "Looping Sounds". My expectation was that discrete sounds could be played by PlaySound and looping sounds by PlaySoundLoop.

But most of the "looping sounds" don't work with PlaySoundLoop. They work with PlaySound, but there they play infinetly without chance to ever stop them, one has to restore whole map to a previous state (or is there any hint to clean a map from abandoned sounds?)

On the other hand, the only sound I've found working as intended with PlaySoundLoop is "hum4", which is for some reasons not listet in the wiki document. So I think I just don't understand the underlying concept?



Karsten75

  • Hero Member
  • *****
    • Posts: 7090
Reply #1 on: February 22, 2021, 06:58:39 am

'If you want to live a happy life, tie it to a goal, not to people or things.'

Albert Einstein
(1879-1955)



321k

  • Jr. Member
  • **
    • Posts: 15
Reply #3 on: February 22, 2021, 10:08:51 am
Wait, one more question, I found in the the programs runtime memory a sound named "hum4", which is not in the wiki list. Is there a way to get names of all sounds without doing reverse search in game memory?