Ejemplo n.º 1
0
 @Override
 protected void removeInput(UGen input) {
   Minim.debug("Bus::removeInput - Removing " + input + " to the m_ugens list of " + this);
   for (int i = 0; i < m_ugens.size(); ++i) {
     if (m_ugens.get(i) == input) {
       m_ugens.set(i, null);
     }
   }
 }
Ejemplo n.º 2
0
 // ddf: override because everything that patches to us
 //      goes into our list. then when we generate a sample
 //      we'll sum the audio generated by all of the ugens patched to us.
 @Override
 protected void addInput(UGen input) {
   Minim.debug("Bus::addInput - Adding " + input + " to the m_ugens list of " + this);
   // it needs to know how many channels of audio we expect
   // we set the channel count before adding because concurrency means
   // that we might try to tick input between the add finishing and
   // setAudioChannelCount completing.
   input.setAudioChannelCount(m_tickBuffer.length);
   m_ugens.add(input);
 }