Disabling Haptics bus on platforms that dont support it


I am first time implementing rumble and controller audio output trough FMOD. We are still on 2.01 so we need to do it trough code.

However if the platform doesnt support VIBRATION or CONTROLLER port, my ChannelGroup will reroute the audio back to the main mix which i dont want.

Is there a way to keep to ChannelGroup running just not outputing sound to master bus?

Perhaps a preprocessor directive that changes the value of ChannelGroup::setMute when you know vibration will be unavailable? e.g

1 Like

Brilliant, i had no idea this existed.
Thank you!

1 Like