Thread: Sounds & Music

Page 8 of 19 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 182
  1. #71  
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    No I made the code check to see if it can play using a soundbank and if not it reverts to a default soundcard thing.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #72  
    Registered Member
    natsu's Avatar
    Join Date
    Apr 2007
    Age
    29
    Posts
    3,451
    Thanks given
    1,084
    Thanks received
    676
    Rep Power
    1096
    Quote Originally Posted by Galkon View Post
    No I made the code check to see if it can play using a soundbank and if not it reverts to a default soundcard thing.
    k

    whats the point of the code if your not using it?
    public void playSound(int id, int type, int delay, int volume) {
    sound[currentSound] = id;
    soundType[currentSound] = type;
    soundDelay[currentSound] = delay + Sound.anIntArray326[id];
    soundVolume[currentSound] = volume;
    currentSound++;
    }

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #73  
    Registered Member
    Join Date
    Apr 2011
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    What client is everyone using? I tried Galkon's Refactored and i get 62 errors.

    Spoiler for Errors:
    location: class signlink
    client.java:786: error: cannot find symbol
    return signlink.wavereplay();
    ^
    symbol: method wavereplay()
    location: class signlink
    client.java:1201: error: cannot find symbol
    SoundPlayer.setVolume(config);
    ^
    symbol: variable config
    location: class client
    client.java:2759: error: cannot find symbol
    return abyte0 == null || signlink.wavesave(abyte0, i);
    ^
    symbol: method wavesave(byte[],int)
    location: class signlink
    client.java:6753: error: cannot find symbol
    for (int index = 0; index < currentSound; index++) {
    ^
    symbol: variable currentSound
    location: class client
    client.java:6757: error: cannot find symbol
    ByteVector stream = Sound.method241(soun
    dType[index], sound[index]);
    ^
    symbol: class ByteVector
    location: class client
    client.java:6757: error: cannot find symbol
    ByteVector stream = Sound.method241(soun
    dType[index], sound[index]);
    ^
    symbol: variable soundType
    location: class client
    client.java:6757: error: cannot find symbol
    ByteVector stream = Sound.method241(soun
    dType[index], sound[index]);

    ^
    symbol: variable sound
    location: class client
    client.java:6757: error: cannot find symbol
    ByteVector stream = Sound.method241(soun
    dType[index], sound[index]);
    ^
    symbol: variable Sound
    location: class client
    client.java:6758: error: cannot find symbol
    new SoundPlayer((InputStream) new ByteAr
    rayInputStream(stream.buffer, 0, stream.currentOffset), soundVolume[index], soun
    dDelay[index]);

    ^
    symbol: variable soundDelay
    location: class client
    client.java:6766: error: cannot find symbol
    if (!flag1 || soundDelay[index] == -5) {
    ^
    symbol: variable soundDelay
    location: class client
    client.java:6767: error: cannot find symbol
    currentSound--;
    ^
    symbol: variable currentSound
    location: class client
    client.java:6768: error: cannot find symbol
    for (int j = index; j < currentSound; j+
    +) {
    ^
    symbol: variable currentSound
    location: class client
    client.java:6769: error: cannot find symbol
    sound[j] = sound[j + 1];
    ^
    symbol: variable sound
    location: class client
    client.java:6769: error: cannot find symbol
    sound[j] = sound[j + 1];
    ^
    symbol: variable sound
    location: class client
    client.java:6770: error: cannot find symbol
    soundType[j] = soundType[j + 1];

    ^
    symbol: variable soundType
    location: class client
    client.java:6770: error: cannot find symbol
    soundType[j] = soundType[j + 1];

    ^
    symbol: variable soundType
    location: class client
    client.java:6771: error: cannot find symbol
    soundDelay[j] = soundDelay[j + 1
    ];
    ^
    symbol: variable soundDelay
    location: class client
    client.java:6771: error: cannot find symbol
    soundDelay[j] = soundDelay[j + 1
    ];
    ^
    symbol: variable soundDelay
    location: class client
    client.java:6776: error: cannot find symbol
    soundDelay[index] = -5;
    ^
    symbol: variable soundDelay
    location: class client
    client.java:6783: error: cannot find symbol
    if (previousSong > 0) {
    ^
    symbol: variable previousSong
    location: class client
    client.java:6784: error: cannot find symbol
    previousSong -= 20;
    ^
    symbol: variable previousSong
    location: class client
    client.java:6785: error: cannot find symbol
    if (previousSong < 0)
    ^
    symbol: variable previousSong
    location: class client
    client.java:6786: error: cannot find symbol
    previousSong = 0;
    ^
    symbol: variable previousSong
    location: class client
    client.java:6787: error: cannot find symbol
    if (previousSong == 0 && musicEnabled) {
    ^
    symbol: variable previousSong
    location: class client
    client.java:6795: error: cannot find symbol
    sound[currentSound] = id;
    ^
    symbol: variable sound
    location: class client
    client.java:6795: error: cannot find symbol
    sound[currentSound] = id;
    ^
    symbol: variable currentSound
    location: class client
    client.java:6796: error: cannot find symbol
    soundType[currentSound] = type;
    ^
    symbol: variable soundType
    location: class client
    client.java:6796: error: cannot find symbol
    soundType[currentSound] = type;
    ^
    symbol: variable currentSound
    location: class client
    client.java:6797: error: cannot find symbol
    soundDelay[currentSound] = delay + Sound.anIntArray326[id];
    ^
    symbol: variable soundDelay
    location: class client
    client.java:6797: error: cannot find symbol
    soundDelay[currentSound] = delay + Sound.anIntArray326[id];
    ^
    symbol: variable currentSound
    location: class client
    client.java:6797: error: cannot find symbol
    soundDelay[currentSound] = delay + Sound.anIntArray326[id];
    ^
    symbol: variable Sound
    location: class client
    client.java:6798: error: cannot find symbol
    soundVolume[currentSound] = volume;
    ^
    symbol: variable currentSound
    location: class client
    client.java:6799: error: cannot find symbol
    currentSound++;
    ^
    symbol: variable currentSound
    location: class client
    client.java:8973: error: cannot find symbol
    signlink.midivol = i;
    ^
    symbol: variable midivol
    location: class signlink
    client.java:10490: error: cannot find symbol
    int songID = in.method434();
    ^
    symbol: variable in
    location: class client
    client.java:10494: error: cannot find symbol
    if (songID != currentSong && previousSong == 0)
    {
    ^
    symbol: variable previousSong
    location: class client
    client.java:10500: error: cannot find symbol
    opCode = -1;
    ^
    symbol: variable opCode
    location: class client
    client.java:10505: error: cannot find symbol
    int songId = in.method436();
    ^
    symbol: variable in
    location: class client
    client.java:10506: error: cannot find symbol
    int songDelay = in.method435();
    ^
    symbol: variable in
    location: class client
    client.java:10507: error: cannot find symbol
    if (musicEnabled && !lowMemory) {
    ^
    symbol: variable lowMemory
    location: class client
    client.java:10511: error: cannot find symbol
    previousSong = songDelay;
    ^
    symbol: variable previousSong
    location: class client
    client.java:10513: error: cannot find symbol
    opCode = -1;
    ^
    symbol: variable opCode
    location: class client
    client.java:10827: error: cannot find symbol
    int soundId = in.readShort();
    ^
    symbol: variable in
    location: class client
    client.java:10828: error: cannot find symbol
    int type = in.readUByte();
    ^
    symbol: variable in
    location: class client
    client.java:10829: error: cannot find symbol
    int delay = in.readShort();
    ^
    symbol: variable in
    location: class client
    client.java:10830: error: cannot find symbol
    int volume = in.readShort();
    ^
    symbol: variable in
    location: class client
    client.java:10831: error: cannot find symbol
    sound[currentSound] = soundId;
    ^
    symbol: variable sound
    location: class client
    client.java:10831: error: cannot find symbol
    sound[currentSound] = soundId;
    ^
    symbol: variable currentSound
    location: class client
    client.java:10832: error: cannot find symbol
    soundType[currentSound] = type;
    ^
    symbol: variable soundType
    location: class client
    client.java:10832: error: cannot find symbol
    soundType[currentSound] = type;
    ^
    symbol: variable currentSound
    location: class client
    client.java:10833: error: cannot find symbol
    soundDelay[currentSound] = delay + Sound.anIntAr
    ray326[soundId];
    ^
    symbol: variable soundDelay
    location: class client
    client.java:10833: error: cannot find symbol
    soundDelay[currentSound] = delay + Sound.anIntAr
    ray326[soundId];
    ^
    symbol: variable currentSound
    location: class client
    client.java:10833: error: cannot find symbol
    soundDelay[currentSound] = delay + Sound.anIntAr
    ray326[soundId];
    ^
    symbol: variable Sound
    location: class client
    client.java:10834: error: cannot find symbol
    soundVolume[currentSound] = volume;
    ^
    symbol: variable currentSound
    location: class client
    client.java:10835: error: cannot find symbol
    currentSound++;
    ^
    symbol: variable currentSound
    location: class client
    client.java:10836: error: cannot find symbol
    opCode = -1;
    ^
    symbol: variable opCode
    location: class client
    62 errors
    Press any key to continue . . .
    Reply With Quote  
     

  4. #74  
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by R2range View Post
    k

    whats the point of the code if your not using it?
    I use it for my own way of playing sounds/music, so I included it. It's up to you how you want to use it.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #75  
    Registered Member Skyn's Avatar
    Join Date
    Nov 2007
    Posts
    421
    Thanks given
    28
    Thanks received
    13
    Rep Power
    56
    Server Based Error:

    When i try to add this command to test the sound

    Code:
    if (playerCommand.startsWith("sound")) {
    				c.getPA().sendSound(472, 7, 0);
    			}
    I get this error

    Code:
    src\server\model\players\packets\Commands.java:182: error: method sendSound in c
    lass PlayerAssistant cannot be applied to given types;
                                    c.getPA().sendSound(472, 7, 0);
                                             ^
      required: int,int,int,int
      found: int,int,int
      reason: actual and formal argument lists differ in length
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    System.out.println("I love Rune-Server");
    Reply With Quote  
     

  6. #76  
    Registered Member

    Join Date
    Nov 2007
    Age
    26
    Posts
    161
    Thanks given
    0
    Thanks received
    0
    Rep Power
    85
    Only errors I'm getting are Error T1s and it logs me out .. The only step I didn't do was changing the 5 to 6 in SizeConstants.java. I don't have a sizeConstants.java so I'm not to sure where to change the 5 to a 6 haha.. Help would be appreciated thanks!
    PM me good Java tutorials
    Reply With Quote  
     

  7. #77  
    Registered Member
    natsu's Avatar
    Join Date
    Apr 2007
    Age
    29
    Posts
    3,451
    Thanks given
    1,084
    Thanks received
    676
    Rep Power
    1096
    Quote Originally Posted by bmxxscape View Post
    Only errors I'm getting are Error T1s and it logs me out .. The only step I didn't do was changing the 5 to 6 in SizeConstants.java. I don't have a sizeConstants.java so I'm not to sure where to change the 5 to a 6 haha.. Help would be appreciated thanks!
    you got that file probly non renamed then but the reason that you got that errors are because your missing a byte thats why you need to change it

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #78  
    Registered Member

    Join Date
    Nov 2007
    Age
    26
    Posts
    161
    Thanks given
    0
    Thanks received
    0
    Rep Power
    85
    Quote Originally Posted by R2range View Post
    you got that file probly non renamed then but the reason that you got that errors are because your missing a byte thats why you need to change it
    Oh alright well I found my sizeconstants class (class31) and I still wasn't sure which 5 to change to 6, but there was three in there and I tried changing each 5 to 6 but after compiling I still got the same T1 errors :\ no luck..
    PM me good Java tutorials
    Reply With Quote  
     

  9. #79  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,167
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    pls help me to rename alli just fixed most of them
    Code:
    client.java:38: cannot find symbol
    symbol  : variable Sound
    location: class client
                    anIntArray1250[anInt1062] = delay + Sound.anIntArray326[id];
                                                        ^
    client.java:38: operator + cannot be applied to int,<any>
                    anIntArray1250[anInt1062] = delay + Sound.anIntArray326[id];
                                                ^
    client.java:38: incompatible types
    found   : <nulltype>
    required: int
                    anIntArray1250[anInt1062] = delay + Sound.anIntArray326[id];
                                                      ^
    client.java:6733: cannot find symbol
    symbol  : class ByteVector
    location: class client
                                            ByteVector stream = Sound.method241(anIn
    tArray1241[index], anIntArray1207[index]);
                                            ^
    client.java:6733: cannot find symbol
    symbol  : variable Sound
    location: class client
                                            ByteVector stream = Sound.method241(anIn
    tArray1241[index], anIntArray1207[index]);
                                                                ^
    5 errors
    Press any key to continue . . .
    Reply With Quote  
     

  10. #80  
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by dani_gonzales View Post
    pls help me to rename alli just fixed most of them
    Code:
    client.java:38: cannot find symbol
    symbol  : variable Sound
    location: class client
                    anIntArray1250[anInt1062] = delay + Sound.anIntArray326[id];
                                                        ^
    client.java:38: operator + cannot be applied to int,<any>
                    anIntArray1250[anInt1062] = delay + Sound.anIntArray326[id];
                                                ^
    client.java:38: incompatible types
    found   : <nulltype>
    required: int
                    anIntArray1250[anInt1062] = delay + Sound.anIntArray326[id];
                                                      ^
    client.java:6733: cannot find symbol
    symbol  : class ByteVector
    location: class client
                                            ByteVector stream = Sound.method241(anIn
    tArray1241[index], anIntArray1207[index]);
                                            ^
    client.java:6733: cannot find symbol
    symbol  : variable Sound
    location: class client
                                            ByteVector stream = Sound.method241(anIn
    tArray1241[index], anIntArray1207[index]);
                                                                ^
    5 errors
    Press any key to continue . . .
    Sound might be Sounds and ByteVector is Stream.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 8 of 19 FirstFirst ... 67891018 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 7
    Last Post: 03-14-2012, 02:54 PM
  2. Sounds and Music
    By Dennis in forum Help
    Replies: 2
    Last Post: 06-01-2010, 01:31 AM
  3. Music and Sounds
    By Viii in forum Tutorials
    Replies: 43
    Last Post: 07-05-2009, 01:12 PM
  4. Sounds, music and more.
    By Inside Sin in forum Requests
    Replies: 0
    Last Post: 10-05-2008, 06:40 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •