
List registered sounds for the Speaker
GravityCY opened this issue · 2 comments
I feel like it's a bit incomplete that the speaker can play sound events using their game sound event IDs, yet there’s no built-in way to query what sounds are available programmatically. It would be really useful if there was an API to retrieve a list of all registered sound events, or even filter them by namespace or mod ID.
Basically, it'd be nice to have something like speaker.listSounds()
Oh I think I understand. So the server doesn't care about what sounds it sends it just hopes the client can find that and play that sound event?
Could there be a synchronization step where the server asks clients what registered sound events they have, and merge it to the servers known list of sound events, and I guess if people have client mods that add sounds other connected clients might not have, you just still send them and let it fail for the others?
I don't know just spitballing, maybe even just having a server sided sound events list is fine.
So part of the reason here is that we don't actually know what sounds can be played! Some sounds are registered everywhere, but a lot more are only registered on the client, so the server doesn't know anything about them.
We could perhaps provide a list of registered sounds, but it would be pretty incomplete, so sadly not sure how useful it'd be :/.