reindent/format

This commit is contained in:
Brian Matzon 2004-10-03 09:00:36 +00:00
parent 1e83aad48d
commit 53dfc0da74
1 changed files with 207 additions and 211 deletions

View File

@ -90,15 +90,9 @@ public class NetTest {
public static FloatBuffer spectrum; public static FloatBuffer spectrum;
/** List of known urls (monkeyradio, di streams) */ /** List of known urls (monkeyradio, di streams) */
public static String[] urls = new String[] { public static String[] urls = new String[] { "http://207.200.96.227:8038/", "http://205.188.234.65:8020",
"http://207.200.96.227:8038/", "http://64.236.34.67:80/stream/1006", "http://64.236.34.67:80/stream/1003", "http://205.188.234.65:8026",
"http://205.188.234.65:8020", "http://64.236.34.67:80/stream/2004", "http://64.236.34.67:80/stream/1019", "http://64.236.34.67:80/stream/2005"};
"http://64.236.34.67:80/stream/1006",
"http://64.236.34.67:80/stream/1003",
"http://205.188.234.65:8026",
"http://64.236.34.67:80/stream/2004",
"http://64.236.34.67:80/stream/1019",
"http://64.236.34.67:80/stream/2005"};
/** /**
* Creates a new NetTest * Creates a new NetTest
@ -141,6 +135,7 @@ public class NetTest {
// actual audi thread that starts playing // actual audi thread that starts playing
fmodThread = new Thread() { fmodThread = new Thread() {
public void run() { public void run() {
// Open the url and prepare to play // Open the url and prepare to play
// ============================================ // ============================================
@ -290,6 +285,7 @@ public class NetTest {
dialog.pack(); dialog.pack();
dialog.addWindowListener(new WindowAdapter() { dialog.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) { public void windowClosing(WindowEvent e) {
dialog.dispose(); dialog.dispose();
} }
@ -341,7 +337,7 @@ public class NetTest {
panel[1].setBackground(new Color(0x99, 0x99, 0x99)); panel[1].setBackground(new Color(0x99, 0x99, 0x99));
// add list of known urls // add list of known urls
for(int i=0; i<urls.length; i++) { for (int i = 0; i < urls.length; i++) {
choice.add(urls[i]); choice.add(urls[i]);
} }
@ -353,6 +349,7 @@ public class NetTest {
// Add listeners // Add listeners
// ===================================================== // =====================================================
frame.addWindowListener(new WindowAdapter() { frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) { public void windowClosing(WindowEvent e) {
frame.dispose(); frame.dispose();
netTest.dispose(); netTest.dispose();
@ -386,7 +383,6 @@ public class NetTest {
frame.setVisible(true); frame.setVisible(true);
} }
/** /**
* Simplish spectrum * Simplish spectrum
* @author Brian Matzon <brian@matzon.dk> * @author Brian Matzon <brian@matzon.dk>
@ -431,7 +427,7 @@ public class NetTest {
for (int i = 0; i < 256; i++) { for (int i = 0; i < 256; i++) {
int height = (int) (getHeight() * 4.0 * spectrum.get(i)); int height = (int) (getHeight() * 4.0 * spectrum.get(i));
bufferGraphics.fillRect(x, getHeight() - height, 2, height); bufferGraphics.fillRect(x, getHeight() - height, 2, height);
x+=2; x += 2;
} }
} }