We’re interested in dynamically routing different events to different sound devices on a computer. For example general audio to the default sound device, radio communication to a secondary sound device; but only if the user has the hardware available and enables the feature. Is there any way to implement that using the new 2.02 output ports features? All I’ve found on the documentation refers exclusively to the Playstation platform. Thanks!
Nice idea. What are the “new 2.02 output ports features” you mention?
The list of port types supported by each platform is available in the platform-specific documentation for each of those platforms, as well as in the Port Buses section of the Mixing chapter of the FMOD Studio User Manual, and your game’s code can detect which devices are physically present and enabled in a player’s setup. You can use this information to control your FMOD Studio project’s behavior, and thus achieve the behavior you described.
By default, if a signal is routed to a port bus, and that port bus’ port type is not valid on the current platform, the content is instead routed into the project’s master bus. You can of course change this by using sends, snapshots, and automation to alter which signals are audible and how they are routed.
Thank you @joseph! I downloaded the Windows SDK but I couldn’t found what port types are available on this platform, and how does FMOD know which port type to map to which audio device. I couldn’t find any examples either, except for the multi system example, which I was already aware of, but it doesn’t solve my issue.
FMOD knows which port type to match to which audio device by using the platform specification: Each console has specific devices that it supports and specific ways of addressing those devices through the console’s operating system, and each port type knows how to address the platform-specific devices it’s associated with.
The desktop platform, however, has no fixed specification: Two PCs running the same operating system might have completely different hardware and peripherals. As such, there are no port types that can be used to address specific hardware devices on PC.
Game Core on Windows does support the “Music” and “Copyright Music” port types, so if you’re developing a Game Core game for windows you can use those, but PC applications cannot otherwise benefit from ports.
That was exactly my question.Thanks.