Code example for ArrayBlockingQueue

Methods: offer

0
        + ".setLastStampedAudio(): dumping excess frame "); 
        _audio.releaseStampedAudio(stampedAudio); 
        } 
        }*/ 
 
        boolean accepted = _qStampedAudio.offer(stampedAudio);
        if (!accepted) {
            AndroidLog.getLog().debug( 
                    this.getClass().getSimpleName()
                    + ".setLastStampedAudio(): dumping excess frame "); 
            _audio.releaseStampedAudio(stampedAudio);
            tweakSpeed(+8); 
        } 
 
    } 
 
    private StampedAudio getLastStampedAudio() { 
        StampedAudio stampedAudio = null;
        /* 
        if (_listStampedAudio != null) { 
        synchronized (_listStampedAudio) {