From: David ‘Bombe’ Roden Date: Sat, 16 Mar 2013 00:29:57 +0000 (+0100) Subject: Formatting. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f71b3478fa765605de8e53ae0c7a150abf175262;p=sonitus.git Formatting. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/Filter.java b/src/main/java/net/pterodactylus/sonitus/data/Filter.java index 897da01..d0bad5d 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Filter.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Filter.java @@ -22,6 +22,6 @@ package net.pterodactylus.sonitus.data; * * @author David ‘Bombe’ Roden */ -public interface Filter extends Source, Sink{ +public interface Filter extends Source, Sink { } diff --git a/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java b/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java index 2ef61e0..1e4f6ec 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java +++ b/src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java @@ -32,8 +32,8 @@ import net.pterodactylus.sonitus.data.Sink; 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 David ‘Bombe’ Roden */ @@ -54,6 +54,7 @@ public class AudioSink implements Sink { sourceDataLine.open(audioFormat); sourceDataLine.start(); new Thread(new Connection(source) { + @Override protected int bufferSize() { return sourceFormat.channels() * sourceFormat.frequency() * 2; @@ -70,8 +71,7 @@ public class AudioSink implements Sink { sourceDataLine.stop(); } }).start(); - } - catch (LineUnavailableException lue1) { + } catch (LineUnavailableException lue1) { throw new ConnectException(lue1); } } diff --git a/src/main/java/net/pterodactylus/sonitus/io/OggVorbisIdentifier.java b/src/main/java/net/pterodactylus/sonitus/io/OggVorbisIdentifier.java index f70a432..49daa27 100644 --- a/src/main/java/net/pterodactylus/sonitus/io/OggVorbisIdentifier.java +++ b/src/main/java/net/pterodactylus/sonitus/io/OggVorbisIdentifier.java @@ -31,10 +31,8 @@ import com.jcraft.jorbis.Comment; import com.jcraft.jorbis.Info; /** - * Identifies Ogg Vorbis files. - *

- * All knowledge used in this class has been taken from jcraft.com/jorbis/tutorial/Tutorial.html. + * Identifies Ogg Vorbis files.

All knowledge used in this class has been + * taken from jcraft.com/jorbis/tutorial/Tutorial.html. *

* * @author David ‘Bombe’ Roden