alessandrofama / wwise-godot-integration

Wwise Integration for the Godot Engine
Other
288 stars 14 forks source link

add support for AK::SoundEngine::SetRandomSeed #68

Closed michaelhartung closed 1 year ago

michaelhartung commented 1 year ago

When testing large music structures which contain random containers it can be useful for testing to reproduce the exact same result consecutively using AK::SoundEngine::SetRandomSeed

Commit includes Godot test scene and additional midi files to test with synth one on a random music playlist that plays single notes consecutively.

Setting the seed before calling the event results in the same order of notes each time the event is played.

AK::SoundEngine::SetRandomSeed

PS: I'm not sure what's going on with the "\" vs "/" conversion in the .xml files. I used the Wwise version specified on the project page. Since this is just a void function I didn't wrap it in a test.

alessandrofama commented 1 year ago

Great addition, thanks!

I think the / & \ changes happens because of how paths are treated on macOS vs Windows. Might be worth thinking about moving the Godot and Wwise demo projects to a separate repo sometime in the future to just have code to the extension interfaces here. Since a lot of functionality was built inside the demo project (nodes etc.) not possible right now, but might change with 4.0 since it's easier to build almost everything using godot-cpp.

michaelhartung commented 1 year ago

Thanks for the quick merge <3.

Ah I see, and yes, probably makes sense to move the Godot/Wwise projects into their own respective repo at some point.

michaelhartung commented 1 year ago

Btw, I wanted to update the wiki, but I guess you'd need to give me write access to it :).

alessandrofama commented 1 year ago

Btw, I wanted to update the wiki, but I guess you'd need to give me write access to it :).

done :)

michaelhartung commented 1 year ago

Thank you :)