From f71b3478fa765605de8e53ae0c7a150abf175262 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 16 Mar 2013 01:29:57 +0100 Subject: [PATCH] Formatting. --- src/main/java/net/pterodactylus/sonitus/data/Filter.java | 2 +- src/main/java/net/pterodactylus/sonitus/data/sink/AudioSink.java | 8 ++++---- .../java/net/pterodactylus/sonitus/io/OggVorbisIdentifier.java | 6 ++---- 3 files changed, 7 insertions(+), 9 deletions(-) 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 -- 2.7.4