|
VR-Engage
2.3
|
This page covers radio initialization hooks and their role configuration in VR-Engage 2.3. The public header is vreMakRadio/radioManager.h.
makVre::DtVreRadioManager::configureRadios() now receives the initializer that holds the shared channel definitions:
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.
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.
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.