protected synchronized void processDelegate(InternalAudioTrack delegate, LocalAudioTrackExecutor localExecutor) throws Exception { if (this.delegate != null) { throw new IllegalStateException("Cannot assign delegate twice."); } this.delegate = delegate; delegate.assignExecutor(localExecutor, false); delegate.process(localExecutor); }
audioTrack.process(this);