Make SoundService.PlayLocalSound respect sound effects

Currently SoundService.PlayLocalSound is a rather unknown but nifty little tool to preview audios programmatically for use in plugins. However it is almost useless for two main reasons.

  1. You can’t stop the sound(this is less of an issue though since you can do it with a hack - attaching the sound to a 3D object and moving the object away)

  2. (The big one) PlayLocalSound doesn’t respect sound effects.

If we could at least get #2 fixed, it would allow us to make our own fully functioning sound previewing plugins, which is something I’ve wanted to make and open source for awhile now to the community but can’t because of these limitations.

My use case aside, if such an API is given to us it shouldn’t simply not include two of the largest things that would make it useful. I feel like this could even be a bug/mistake because the built in previewer respects sound effects but the API does not.

7 Likes

Would it solve your use case if sound instances that were descendants of PluginGuis played normally?

5 Likes

Yes that’d be a great alternative way to fix these issues

2 Likes

Hm. I’ll talk to the sound team and see if this is an option we can explore. We are trying to reduce the amount of plugin-specific hacks that are needed to get things working in Studio, and I imagine it’s not pleasant to have to maintain two separate implementations of the same thing.

8 Likes