Brutal Pkers 2012
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Brutal Pkers 2012

Brutal Pkers - All round skilling, staking and PKing RSC Private Server
HomeRegisterLog in


 RSC Sounds

Go down 
Yong Min

Gender : Male
Posts : 144
Points : 409
Reputation : 27
Join date : 2011-11-11

RSC Sounds Empty
PostSubject: RSC Sounds   RSC Sounds I_icon_minitimeMon Jan 16, 2012 12:11 pm

Unfortunately, some of the RSC sources were released without sounds. If you want to add sounds to your source, you can do that by simply tweaking the AudioReader class (client side).

Go into your client folder and follow the following dir.
Quote :

src - org - rscdaemon - client
When at that destination, open your AudioReader class and replace it with:

package org.rscdaemon.client;



public class AudioReader extends InputStream {

    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++];
                abyte0[i + k] = -1;

        return j;

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

    byte dataArray[];
    int offset;
    int length;
Back to top Go down
RSC Sounds
Back to top 
Page 1 of 1
 Similar topics
» Pawlette Coufur's Birthday Party!

Permissions in this forum:You cannot reply to topics in this forum
Brutal Pkers 2012 :: RSC Development :: Releases-
Jump to: