Thread: Playing mp3's in your client

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 58
  1. #1 Playing mp3's in your client 
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    Description: we are gonna make a startup music in mp3 format
    Difficulty: 1/10

    Assumed Knowledge: you must have the attached files extracted in the folder with your .class files.
    Tested Client: any client that uses java
    Files/Classes Modified: Client.java

    Procedure
    Step 1: extract the files in your client folder. (dont put the folder music in the client folder but the stuff that's in the music folder)
    Step 2: Okey, now we done that open up client. java and search:
    Code:
    Starting up
    Step 3:than in that code add this:
    Code:
    MP3 mp3 = new MP3("./THEFILENAMEOFYOURMP3.mp3");
    mp3.play();
    than u could make like a if(s.input blabla
    mp3.close

    to stop the music
    Credits: javazoom for the mp3 player,
    [Only registered and activated users can see links. ] for the MP3 class.
    me for making the tut.

    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     

  2. #2  
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    very ncie but you have to change
    Code:
    mp3.play()
    mp3.close()
    to
    Code:
    mp3.play();
    mp3.close();
    and im getting this error

    I put it in my client with no errors and no music plays?
    [Only registered and activated users can see links. ]

    Signature made by Mr. Ervis

    Any questions, MSN me; [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    add the MP3.class that's attached to your class files
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     

  4. #4  
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    yea i realized i extracted the file musikc not inside but no music plays i added no errors worked out perfect and nothing

    this is where i added
    Code:
        public final void method6()
        {
            method13(20, (byte)4, "Starting up");
            if(signlink.sunjava)
                super.anInt6 = 5;
    	MP3 mp3 = new MP3("./Disturbed");
    	mp3.play();
    	mp3.close();
    [Only registered and activated users can see links. ]

    Signature made by Mr. Ervis

    Any questions, MSN me; [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    oo sry, try deleting the mp3.close;
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     

  6. #6  
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    ohhhhh very nice dude good job rep on this for sure. now if i wanted to make a stop option would i just add the mp3.close into that?
    [Only registered and activated users can see links. ]

    Signature made by Mr. Ervis

    Any questions, MSN me; [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    exactly(mts)
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     

  8. #8  
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    Quote Originally Posted by Arian Rock View Post
    exactly(mts)
    thanks alot mate rep on this for sure
    [Only registered and activated users can see links. ]

    Signature made by Mr. Ervis

    Any questions, MSN me; [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,336
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    i laready had this but anyway to play wma's?
    cus its a pain converting everything to either a midi or a mp3
    Reply With Quote  
     

  10. #10  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    26
    Posts
    1,228
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    mmm. probally, try google this : Wma java support

    probally tons of infromation
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     

Page 1 of 6 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •