How do you adjust volume of a SoundGroup?

A bit confused here, I have categorized all sounds in the game according to the default groups provided by the engine.
Now, how do I adjust the volume of each group via c++ code? I only see the sound class multipliers, and that’s not really what I want to do.

I would be really grateful, if someone could provide a good example. Thx…

SoundGroups are just barely present in the engine at the moment. The long term the intention for them is around memory management more than playback characteristics. For that SoundClasses are still intended to be the way to go.

ok, got cha.

I tried to add child class to the soundclass, but it gave out these compiled error though:

How do I fixed this?

Were you trying to subclass SoundClass in C++? The USoundClass class is marked MinimalAPI which allows you to reference it in other modules, but none of the functions are exported with the ENGINE_API markup so subclassing it may not work, though I have to admit I’m a bit surprised that those ones would show up as link errors but others wouldn’t.

You could remove the MinimalAPI from the UCLASS macro and do class ENGINE_API USoundClass instead and the symbols should be exported to link against, however, I’m not entirely sure how you plan to make use of this subclassed SoundClass as you won’t be able to make one in the content browser or use it in the SoundClass editor.

If you could give me a bit more details on what you’re trying to accomplish I may be able to point you in the best direction.

Marc

Arrr, thanks. I already just add them as new subclass via editor.

I only thought it might be more convenient if I could control them with native c++ codes. But I guess that wasn’t very useful. So never mind on that. :slight_smile: