/// <summary> /// Provides a cached software bus object for facilitating the access of csound channels by name. /// It is preloaded with entries for any channels know by csound at the time of instantiation /// (from score after compilation, usually). /// </summary> /// <returns></returns> public Csound6SoftwareBus GetSoftwareBus() { if (m_softwareBus == null) { m_softwareBus = new Csound6SoftwareBus(this); } return(m_softwareBus); }
protected override void Dispose(bool disposing) { if (!m_disposed) { if (m_softwareBus != null) { m_softwareBus.Dispose(); //release unmanaged channel memory } m_softwareBus = null; } base.Dispose(disposing); }