void CAudioSystemEditor_wwise::Reload(bool bPreserveConnectionStatus)
{
    // set all the controls as placeholder as we don't know if
    // any of them have been removed but still have connections to them
    TControlMap::const_iterator it = m_controls.begin();
    TControlMap::const_iterator end = m_controls.end();
    for (; it != end; ++it)
    {
        TControlPtr pControl = it->second;
        if (pControl)
        {
            pControl->SetPlaceholder(true);
            pControl->SetConnected(false);
        }
    }

    // reload data
    m_loader.Load(this);

    if (bPreserveConnectionStatus)
    {
        UpdateConnectedStatus();
    }
    else
    {
        m_connectionsByID.clear();
    }
}
コード例 #2
0
void
ScriptProcessorNode::EventListenerRemoved(nsIAtom* aType)
{
  AudioNode::EventListenerRemoved(aType);
  if (aType == nsGkAtoms::onaudioprocess) {
    UpdateConnectedStatus();
  }
}