import net.pterodactylus.sonitus.data.Source;
/**
- * {@link Sink} implementation that uses the JDK’s {@link javax.sound.sampled.AudioSystem} to play all {@link
- * net.pterodactylus.sonitus.data.Source}s.
+ * {@link Sink} implementation that uses the JDK’s {@link
+ * javax.sound.sampled.AudioSystem} to play all {@link net.pterodactylus.sonitus.data.Source}s.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
sourceDataLine.open(audioFormat);
sourceDataLine.start();
new Thread(new Connection(source) {
+
@Override
protected int bufferSize() {
return sourceFormat.channels() * sourceFormat.frequency() * 2;
sourceDataLine.stop();
}
}).start();
- }
- catch (LineUnavailableException lue1) {
+ } catch (LineUnavailableException lue1) {
throw new ConnectException(lue1);
}
}
import com.jcraft.jorbis.Info;
/**
- * Identifies Ogg Vorbis files.
- * <p>
- * All knowledge used in this class has been taken from <a
- * href="http://www.jcraft.com/jorbis/tutorial/Tutorial.html">jcraft.com/jorbis/tutorial/Tutorial.html</a>.
+ * Identifies Ogg Vorbis files. <p> All knowledge used in this class has been
+ * taken from <a href="http://www.jcraft.com/jorbis/tutorial/Tutorial.html">jcraft.com/jorbis/tutorial/Tutorial.html</a>.
* </p>
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>