VR-Engage  2.3
Loading...
Searching...
No Matches
vreMakRadio Library API Changes

This page covers radio initialization hooks and their role configuration in VR-Engage 2.3. The public header is vreMakRadio/radioManager.h.

Breaking changes

Radio configuration override

makVre::DtVreRadioManager::configureRadios() now receives the initializer that holds the shared channel definitions:

// 2.2 protected override
virtual void configureRadios(makVre::DtInitTable& radios);
// 2.3 protected override
virtual void configureRadios(makVre::DtInitTable& radios,
makRadio::DtRadioSystemInitializer& radioInit);
Table-based access to Lua state for configuration data.
Definition initializer.h:38

Update derived-class overrides to accept and use the initializer. An old one-argument method no longer overrides the hook. Call the base implementation when retaining standard radio setup.

Shared channel configuration

DtVreRadioManager::init() reads channels from the radio component configuration before it reads radios. Move copied per-radio channel definitions into that shared list. Each radio receives a copy of the shared channels. Set its currentChannel to a zero-based index into the list; use -1 when no channel is selected. Set audioChannel to left, center, or right when configuring audio placement. See Radio configuration changes for the role-level migration.

Additions

Channel configuration hook

Derived radio managers can override configureChannels(makVre::DtInitTable& channels, makRadio::DtRadioSystemInitializer& initializer). The base implementation adds each channel to the initializer before configureRadios() runs. Preserve that order if a custom override modifies channels.