Java 8 DataLine.Info - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 DataLine.Info class.

This code example shows how to use the following methods:
        private final SourceDataLine dataLine;
        public JavaSoundDirectAudioPlayerComponent(String format, int rate, int channels) throws Exception {
            super(format, rate, channels);
            this.audioFormat = new AudioFormat(rate, SAMPLE_BITS, channels, true, false);
   = new Info(SourceDataLine.class, audioFormat);
            this.dataLine = (SourceDataLine)AudioSystem.getLine(info);
        private void start() throws Exception {
        private void stop() { 
See Code Examples for Java 8 DataLine.Info Methods: