Removes an audio source from the audio manager.
@param audioSource audio source to remove
542453
public void removeSource(GVRAudioSource audioSource)
    {
        synchronized (mAudioSources)
        {
            audioSource.setListener(null);
            mAudioSources.remove(audioSource);
        }
    }
644208
protected void removeDestinationListener(DestinationListener destinationListener)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "removeDestinationListener", new Object[] { destinationListener });

        synchronized (this)
        {
            for (int i = 0; i < destinationListeners.size(); i++)
            {
                DestinationListenerDataObject listenerDataObject = destinationListeners.get(i);
                if (destinationListener.equals(listenerDataObject.getDestinationLister()))
                {
                    destinationListeners.remove(listenerDataObject);
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "removeDestinationListener");
    }
654135
public void freeFiltersWithSource(Object objSource)
    {
        Object[] rgFilter = m_mapFilters.values().toArray();
        for (int i = 0; i < rgFilter.length; i++)
        {
            BaseMessageFilter filter = (BaseMessageFilter)rgFilter[i];
            if (filter.getMessageSource() == objSource)
                filter.free();
        }
    }
1274689
public static synchronized void removeListener(int fileDescriptor) {
        if (listeners.containsKey(fileDescriptor)) {
            listeners.remove(fileDescriptor);
            disableSerialDataReceiveCallback(fileDescriptor);
        }
    }
1274580
public void unbind(DataSource dataSource) throws NamingException {
        if (dataSource == null) {
            throw new IllegalArgumentException("dataSource cannot be null");
        }
        String jndiUrl = this.dataSourceBindings.get(dataSource);
        if (jndiUrl == null) {
            throw new NamingException("No such binding");
        }
        this.initialContext.unbind(jndiUrl);
        this.dataSourceBindings.remove(dataSource);
    }
15541
public void removeListener(MessageKey key, VehicleMessage.Listener listener) {
        removeListener(ExactKeyMatcher.buildExactMatcher(key), listener);
    }
369074
@MainThread
    public <S> void removeSource(@NonNull LiveData<S> toRemote) {
        Source<?> source = mSources.remove(toRemote);
        if (source != null) {
            source.unplug();
        }
    }
90099
protected void removeSource (JComponent comp)
    {
        if (_sourceComp == comp) {
            // reset cursors
            clearComponentCursor();
            _topComp.setCursor(_topCursor);
            reset();
        }
        _draggers.remove(comp);
        comp.removeMouseListener(_sourceListener);
        comp.removeMouseMotionListener(_sourceListener);
    }
789109
public void removeResourceChangeListener(ResourceChangeListener pListener, Object pResourceId) {
        synchronized (timerEntries) {
            removeListenerInternal(getResourceId(pResourceId, pListener));
        }
    }
849044
def remove_listener(self, event_name, listener):
        """"""
        self.listeners[event_name].remove(listener)
        return self
495894
public void removeListener(@NonNull IconicsAnimationListener listener) {
        if (mListeners == null) {
            return;
        }
        mListeners.remove(listener);
        if (mListeners.size() == 0) {
            mListeners = null;
            mAnimator.removeListener(mProxyListener);
        }
    }
1165734
public void removeListener(KeyMatcher matcher,
            VehicleMessage.Listener listener) {
        mNotifier.unregister(matcher, listener);
    }
869620
public void removeListener(CancellationListener cancellationListener) {
    if (!canBeCancelled()) {
      return;
    }
    synchronized (this) {
      if (listeners != null) {
        for (int i = listeners.size() - 1; i >= 0; i--) {
          if (listeners.get(i).listener == cancellationListener) {
            listeners.remove(i);
            // Just remove the first matching listener, given that we allow duplicate
            // adds we should allow for duplicates after remove.
            break;
          }
        }
        // We have no listeners so no need to listen to our parent
        if (listeners.isEmpty()) {
          if (cancellableAncestor != null) {
            cancellableAncestor.removeListener(parentListener);
          }
          listeners = null;
        }
      }
    }
  }
740450
public void unloadAllSounds(){
        stopAllSounds();
        for(String s : buffers.keySet()){
            SoundBufferEntry e = buffers.get(s);
            AL10.alDeleteBuffers(e.bufferId);
        }
        buffers.clear();
    }
302000
def detach(self, listener):
        """"""
        if listener in self.listeners:
            self.listeners.remove(listener)
554345
public void clearSources()
    {
        synchronized (mAudioSources)
        {
            for (GVRAudioSource source : mAudioSources)
            {
                source.setListener(null);
            }
            mAudioSources.clear();
        }
    }
834591
function stopAudioCapture() {

        // Disconnect media source node from script processor
        if (source)
            source.disconnect();

        // Disconnect associated script processor node
        if (processor)
            processor.disconnect();

        // Stop capture
        if (mediaStream) {
            var tracks = mediaStream.getTracks();
            for (var i = 0; i < tracks.length; i++)
                tracks[i].stop();
        }

        // Remove references to now-unneeded components
        processor = null;
        source = null;
        mediaStream = null;

        // End stream
        writer.sendEnd();

    }