Code example for SourceDataLine

Methods: drain

0
        } 
 
        @Override 
        public void drain(DirectAudioPlayer mediaPlayer) {
            Logger.info("drain()"); 
            dataLine.drain();
        } 
 
        @Override 
        public void finished(MediaPlayer mediaPlayer) {
            Logger.info("finished()"); 
            sync.release();
        } 
    } 
}