Skip to content

Commit

Permalink
Extract ./ausbot-source.rar
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfitzhenry committed Sep 5, 2015
1 parent d520660 commit 8840c13
Show file tree
Hide file tree
Showing 117 changed files with 31,528 additions and 0 deletions.
Binary file removed Rsca Bot/Rsca Bot/bin/Constants.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/Encryption.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/GUI$1.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/GUI.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/Loader.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/Main.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/Methods.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/Script$1.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/Script.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/SettingsHandler.class
Binary file not shown.
Binary file removed Rsca Bot/Rsca Bot/bin/StubHandler.class
Binary file not shown.
40 changes: 40 additions & 0 deletions ausbot-source/client/AudioReader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package org.rscdaemon.client;

import java.io.InputStream;

public class AudioReader extends InputStream {

private byte[] dataArray;
private int offset;
private int length;

public AudioReader() {
}

public void stopAudio() {
}

public void loadData(byte[] abyte0, int i, int j) {
dataArray = abyte0;
offset = i;
length = i + j;
}

public int read(byte[] abyte0, int i, int j) {
for (int k = 0; k < j; k++) {
if (offset < length) {
abyte0[i + k] = dataArray[offset++];
}
else {
abyte0[i + k] = -1;
}
}
return j;
}

public int read() {
byte abyte0[] = new byte[1];
read(abyte0, 0, 1);
return abyte0[0];
}
}
Loading

0 comments on commit 8840c13

Please sign in to comment.