Java audio 🔊

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Java audio sound music player tutorial explained
    #java #audio #sound #music
    import java.io.File;
    import java.io.IOException;
    import java.util.Scanner;
    import javax.sound.sampled.*;
    public class Main {
    public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException{
    Scanner scanner = new Scanner(System.in);
    File file = new File("Level_Up.wav");
    AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
    Clip clip = AudioSystem.getClip();
    clip.open(audioStream);
    String response = "";

    while(!response.equals("Q")) {
    System.out.println("P = play, S = Stop, R = Reset, Q = Quit");
    System.out.print("Enter your choice: ");
    response = scanner.next();
    response = response.toUpperCase();
    switch(response) {
    case ("P"): clip.start();
    break;
    case ("S"): clip.stop();
    break;
    case ("R"): clip.setMicrosecondPosition(0);
    break;
    case ("Q"): clip.close();
    break;
    default: System.out.println("Not a valid response");
    }
    }
    System.out.println("Byeeee!");
    }
    }

Komentáře • 252

  • @BroCodez
    @BroCodez  Před 3 lety +78

    import java.io.File;
    import java.io.IOException;
    import java.util.Scanner;
    import javax.sound.sampled.*;
    public class Main {
    public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException{

    Scanner scanner = new Scanner(System.in);

    File file = new File("Level_Up.wav");
    AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
    Clip clip = AudioSystem.getClip();
    clip.open(audioStream);

    String response = "";

    while(!response.equals("Q")) {
    System.out.println("P = play, S = Stop, R = Reset, Q = Quit");
    System.out.print("Enter your choice: ");

    response = scanner.next();
    response = response.toUpperCase();

    switch(response) {
    case ("P"): clip.start();
    break;
    case ("S"): clip.stop();
    break;
    case ("R"): clip.setMicrosecondPosition(0);
    break;
    case ("Q"): clip.close();
    break;
    default: System.out.println("Not a valid response");
    }
    }
    System.out.println("Byeeee!");
    }
    }

    • @tngflash2814
      @tngflash2814 Před 3 lety +1

      When you realize you didn't have to watch the whole video. Still helpful tho. THXXXXXXXXX

    • @Code_Machine
      @Code_Machine Před 3 lety

      Bro how are you so smart? How do you know these things? Just how???

    • @gamingmonts9737
      @gamingmonts9737 Před 3 lety +2

      @@Code_Machine read the documentation? or watch youtube tutorial if u are lazy like me 🤣

    • @scientificshorts9673
      @scientificshorts9673 Před 3 lety

      i had a question an i instanciate an object based on another objects properties such as
      if I had created hair and a getter
      Color color = hair.getColor();

    • @dejanvasiljevic2076
      @dejanvasiljevic2076 Před 3 lety +1

      @@cayman_islands Your file must be .wav extension not mp3.

  • @kirankarki4217
    @kirankarki4217 Před 2 lety +48

    This is the first time I have ever played audio through programming. The joy it gave me was very immense. Thank you very much for putting out this tutorial.

  • @nikybomber496
    @nikybomber496 Před 3 lety +23

    you are the only one who made me understand how to put music in java

  • @wh1t3st4r5
    @wh1t3st4r5 Před 3 lety +48

    Quick tip for y'all. Java can't handle common high quality files (48000.0 Hz, 32 bit, etc), if you encounter something like this: line with format PCM_FLOAT 48000.0 Hz, 32 bit, stereo, 8 bytes/frame not supported. You'll have to downgrade your file, using the web converter and tuning it to ~20000 does the trick ;D

    • @samuelaudric5204
      @samuelaudric5204 Před 2 lety +3

      Thx buddy

    • @Noman23444
      @Noman23444 Před 2 lety +3

      I made it 16000 Hz 8 bits and it still won’t work

    • @wh1t3st4r5
      @wh1t3st4r5 Před 2 lety +3

      @@Noman23444 odd, We will have to read some docs to know what after the limitations exactly then

    • @raffaelefogu4553
      @raffaelefogu4553 Před 5 měsíci +2

      Even 2 years later, I love you

    • @4r1k87
      @4r1k87 Před 5 měsíci +2

      Ok thanks bro

  • @jonathanmantello3974
    @jonathanmantello3974 Před 2 lety +10

    Thank you for the simple and clear explanation! I really want to go deeper into this topic, and have done a bit of research on Java's Line Mixer and stuff. I am a musician and audio engineer and I want to start building some music creation tools, or mp3 player type projects for my portfolio.

  • @DrinkableWater
    @DrinkableWater Před 3 lety +43

    Maby I use this for adding jumpscares to programms that have nothing to do with horror... XD

    • @BroCodez
      @BroCodez  Před 3 lety +6

      YES! That would be great 😂

    • @rafatkinvadanti
      @rafatkinvadanti Před 3 lety +2

      @@BroCodez could not get audio input stream from input file , that what exception says

    • @ronnygamerz88
      @ronnygamerz88 Před 2 lety

      @@BroCodez in my intellij its not working

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 Před 3 lety +8

    NO WAY THIS WAS EXACTLY WHAT I NEEDED OMG YOU ARE THE BEST

    • @BroCodez
      @BroCodez  Před 3 lety +3

      I think you might have given me the idea to create this video lol

    • @noah77
      @noah77 Před 3 lety +3

      @@BroCodez 😂

    • @oguzhantopaloglu9442
      @oguzhantopaloglu9442 Před 3 lety

      @@BroCodez you are the best bro! Could you maybe make a video on CardLayout class too?

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 Před 3 lety +23

    Bro I have some questions:
    1- How can we play a sound that will automaticly loop when it ends until we stop it with clip.stop() ?
    2- How can we set the volume of the sound?
    3- Can we set different volumes to different sounds while playing all of them at once? For example we have some sound effects and music in some app and we want to play music at %70 volume and sound effects at %50 volume. (We want to play them at the same time, the music will be playing in the background and when we play the sound effect, the music will not stop)

    • @BroCodez
      @BroCodez  Před 3 lety +33

      1. clip.loop(clip.LOOP_CONTINUOUSLY);
      2 + 3. You can set the individual sound levels for each clip using this set of code. I would recommend placing this code in a method to call when you need it:
      FloatControl volume = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN);
      // set the percent (between 0.0 and 1.0)
      double percent = 0.5;
      float dB = (float) (Math.log(percent) / Math.log(10.0) * 20.0);
      volume.setValue(dB);

    • @oguzhantopaloglu9442
      @oguzhantopaloglu9442 Před 3 lety +8

      @@BroCodez thank you so much bro you are the best!

  • @arjundas7078
    @arjundas7078 Před 23 dny

    No words can express this feeling.

  • @ThomasRobertsOffficial
    @ThomasRobertsOffficial Před 4 měsíci

    I think the simplest way to suspend your program is just "while(boolean var) { }" or in this case "while(clip.isRunning()) { }". Both of these will trap the thread and allow music to continue playing until the expression resolves to false.

  • @Motivational_speaker_saikat

    I love this channel. I am very much thankful to bro code for coding content. I teach everyday new new thing.
    Thank you
    Bro code❤❤❤

  • @Blackilykat
    @Blackilykat Před 2 lety +8

    I actually preferred using if statements for this one because i used p for both play and pause. i also made a fast forward and a rewind system :)
    File file = new File("src/sound.wav");
    AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
    Clip clip = AudioSystem.getClip();
    clip.open(audioStream);
    System.out.println("P = play/pause, R = reset, RR = rewind 5s, FF = fast forward 5s, Q = quit");
    String response = scanner.next();
    response = response.toLowerCase();
    boolean isPlaying = false;
    while(!response.equals("q")) {
    System.out.println("P = play/pause, R = reset, RR = rewind 5s, FF = fast forward 5s, Q = quit");
    if(response.equals("p")) {
    if(!isPlaying) {
    clip.start();
    isPlaying = true;
    } else {
    clip.stop();
    isPlaying = false;
    }
    } else if (response.equals("r")) {
    clip.setMicrosecondPosition(0);
    } else if (response.equals("rr")) {
    clip.setMicrosecondPosition(clip.getMicrosecondPosition() - 5000000);
    // NOTE: 1000000 is 1 second
    } else if (response.equals("ff")) {
    clip.setMicrosecondPosition(clip.getMicrosecondPosition() + 5000000);
    } else {
    System.out.println("invalid input");
    }
    response = scanner.next().toLowerCase();
    }

  • @janil9357
    @janil9357 Před 3 lety +6

    great video, appreciate the hard works you've done

  • @zari_723
    @zari_723 Před 2 lety +1

    when watching your vids I constantly see ads from the university I tried to get into but failed... Bro it's kinda depressing but won't stop me from learning from your supersupersuper tutorials ;DDD

    • @Simis999
      @Simis999 Před 2 lety +1

      You can get into programming without a programming degree! Just keep your effort as close to 100% as possible and never worry that you might fail, because it's toxic to worry about things that are out of your control. What you have is each day! Lose yourself to the music

    • @zari_723
      @zari_723 Před 2 lety

      @@Simis999 thank you :) Finally, I did it. I'm on my dream course of study but you're absolutely right - it's all about hard work and doing your best every single day

  • @ledesmaayalaangelyeremi2805

    Wao man, it's what i was looking for ... 3 months ago, I don't know why I didn't find this amazing video

  • @dev_utkarsh
    @dev_utkarsh Před 3 lety +1

    Thxxxxxxxxx mannnnnn you're the best
    Love from India 🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳

  • @Sherif876
    @Sherif876 Před 2 lety +3

    THAN YOU VERY MUCH BRO!!!!!! I CAN NOW MAKE MY CODE PLAY THE BIRD

  • @user-dn5jq5wb1h
    @user-dn5jq5wb1h Před 3 měsíci

    Thanks Bro, after watching your videos i get more motivation to code

  • @xevonate
    @xevonate Před 18 dny

    Thank you bro, with 3:25 you saved me

  • @wyatt619
    @wyatt619 Před 3 lety +1

    Hi, i'm a beginner with java and I followed your snake game tutorial as well, and wanted to add a sound effect when an apple is eaten. For some reason I can't get it to work. Here is my code:
    public void playSound() throws LineUnavailableException, IOException, UnsupportedAudioFileException {

    File file = new File("appleeaten.wav");
    AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
    Clip clip = AudioSystem.getClip();
    clip.open(audioStream);
    clip.start();

    }

    public void checkApple() {

    if((x[0] == appleX) && (y[0]) == appleY) {
    bodyParts++;
    applesEaten++;
    try {
    playSound();
    } catch (LineUnavailableException | IOException | UnsupportedAudioFileException e) {
    e.printStackTrace();
    }
    newApple();
    }

    }
    there are no errors in the code but no sound actually plays when I test it. Do you know what I did wrong?

  • @furiouspuzza7080
    @furiouspuzza7080 Před 3 lety +4

    Best of all... no ads 😎🎧

    • @BroCodez
      @BroCodez  Před 3 lety +1

      Oh, there's ads lol
      I try not to place too many in because I know it gets annoying

    • @furiouspuzza7080
      @furiouspuzza7080 Před 3 lety +3

      @Bro Code no I mean no ads when you listen to music in eclipse 🤣

    • @furiouspuzza7080
      @furiouspuzza7080 Před 3 lety +3

      @Bro Code can you teach us how to make a playlist? 😂

  • @deus8546
    @deus8546 Před 2 lety +1

    Thank you so much! I'm also using Eclipse so some other videos on this topic that I watched didn't help.

  • @Marius-re3xj
    @Marius-re3xj Před 3 lety +2

    Great video! What keyboard are you using? It sounds satisfying :)

  • @federicomaccioni3446
    @federicomaccioni3446 Před 3 měsíci

    Yu're a f*cking g, i've been searching for this for like two years

  • @armut1040
    @armut1040 Před 3 lety +1

    I have a exception please help me:
    Exception in thread "main" javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file
    at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1189)
    at playmusic.Main.main(Main.java:15)
    C:\Users\ferid\AppData\Local\NetBeans\Cache\8.2\executor-snippets
    un.xml:53: Java returned: 1
    BUILD FAILED (total time: 1 second)

  • @meedhanshgupta
    @meedhanshgupta Před rokem

    Bro, you are the best...
    Thanks for making such free videos

  • @hamzaak1781
    @hamzaak1781 Před rokem

    I just subscribed after the second video from If statement to Audio. Itbreallybmakes sense when they say, if you really know the base of Java, everything else will follow easily.
    Thanks a lot.i am going for SDET,so Java is the main programming language as the backbone... thanks

  • @hasibulshaikh9396
    @hasibulshaikh9396 Před 9 měsíci

    Thanks for helping Dude. You have explained it so nicely

  • @Overseer190
    @Overseer190 Před 2 lety +2

    Exception in thread "main" javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 32000.0 Hz, 24 bit, mono, 3 bytes/frame, *little-endian not supported*
    What does this mean?

    • @rohitdurve1316
      @rohitdurve1316 Před 2 lety

      Exception in thread "main" java.io.FileNotFoundException: nocturnal.wav (The system cannot find the file specified)

  • @lesedijonas5974
    @lesedijonas5974 Před 3 lety +2

    I like your Taste in music

  • @noah77
    @noah77 Před 3 lety +3

    Hi Bro! I am back, hope you remember me :D just a little tip here, when you teach us Java in Eclipse, press ctrl + m. It will make it full screen and we would be able to see the code properly. I would certainly like it :D

    • @BroCodez
      @BroCodez  Před 3 lety +2

      ha! of course I remember you Moonlight!
      Sweet, didn't know about that crtl + m trick! I'll have to try it

    • @noah77
      @noah77 Před 3 lety +2

      @@BroCodez awesome! :D

    • @pladselsker8340
      @pladselsker8340 Před 2 lety

      or don't use eclipse and use intelliJ instead

  • @Be4stPlays
    @Be4stPlays Před 3 lety +1

    Best coding channel!

  • @boymores2123
    @boymores2123 Před 3 lety

    dude thats the coolest tutorial so far, well im new to your channel so

  • @Fragelii
    @Fragelii Před 3 lety +2

    the filepath is not found.... can't understand i put the correct String..

  • @wolanus
    @wolanus Před 3 lety +1

    Never heard of that. Good to know. Thanks

  • @dragomirpetrov5138
    @dragomirpetrov5138 Před rokem

    2k likes out of 59k views....shame. Can we stop for a minute and think that this dude shares his time and knowledge for free... :/

  • @primeoptumas8435
    @primeoptumas8435 Před 3 lety +1

    Thank you for such a wonderful video.

  • @tridagZMC
    @tridagZMC Před 9 měsíci

    Is there a way to put this on my UI? and btw you always do a good job. Good thing I listened to my friends because they introduced me to your channel

  • @epic1343
    @epic1343 Před 3 lety +1

    helped me out alot man thanks

    • @BroCodez
      @BroCodez  Před 3 lety +1

      thanks for watching epic

  • @theuns-robertpretorius8331

    every video this guy makes deserves a like

  • @infernapocalypse
    @infernapocalypse Před 2 lety

    Finally I can listen to epic sax guy in my java application.

  • @tasneemayham974
    @tasneemayham974 Před rokem +1

    Hey, bro!!
    I've got a question:
    I've been trying to make a JButton that when clicked will produce an audio. I created 3 classes. Within the LaunchAudio Class, in the ActionPerformed method, I created an instance of the class audio where wrote the audio code. I tried to make the button static and make a while loop that says e.getSource() == button, clip.start(); and a sysout. But it doesn't work. There are no errors in the code. But there is no sound when I click the button. the print lines are there tho. May you help me out with this?
    And thx for all your videos BRO!!!! Real HERO!

  • @millejadecabrera4544
    @millejadecabrera4544 Před 3 lety

    really thankful for this tutorial

  • @abdelrahman702
    @abdelrahman702 Před 4 měsíci

    Thank you from Egypt

  • @tamirrozenfeld3572
    @tamirrozenfeld3572 Před rokem

    good video to practice multiple concept, Ty

  • @AdamsProgrammer
    @AdamsProgrammer Před 2 lety

    Ah, thank you! after series of check on stack overflow. finally worked! voila

  • @superTramp572
    @superTramp572 Před 11 měsíci

    I stucked pretty fast at the first import, netbeans says "import javax.sound.sampled.*; not visible. Package javax.sound.sampled is declared in module java.desktop, but module "my main class" does not read it.
    Has anyone got similar error?

  • @vegeta3993
    @vegeta3993 Před 3 lety +1

    How would you make a program that plays a variable pitch tone? I want to change the sound's pitch based on the distance between two points on the screen

  • @PrinceJeniFX
    @PrinceJeniFX Před rokem

    Am very glad. i was finally able to complet it after my second attempt. thank you very much.
    but i want to ask, is it possible to add more sounds and to delete sound aswell?

  • @codingletsdoit2746
    @codingletsdoit2746 Před 3 lety

    You are so underrated dude

  • @user-zq6yx7of5f
    @user-zq6yx7of5f Před rokem

    Thank you very much

  • @WA9NNN
    @WA9NNN Před 3 lety

    Useful. But most of the video is about generic command line processing not so much about audio.

  • @paulfentress9420
    @paulfentress9420 Před 3 lety +2

    Hey, thanks for the great tutorial! I have a question, after calling the sound method I created, my program stops executing the following proceeding lines. For example, I want to play a sound when I run my start game function, then have the game logic still be executed, but where ever I call the sound, my game just comes to a complete halt, how do I fix this?

  • @mozd1729
    @mozd1729 Před 3 lety

    Friendly reminder to everyone: The file shouldn't contain spaces or it won't work

  • @Soyosan22
    @Soyosan22 Před 2 lety

    I didn't understand the first part of the code:
    File file = new File("Level_Up.wav");
    AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
    Clip clip = AudioSystem.getClip();
    clip.open(audioStream);

  • @amolpadale3308
    @amolpadale3308 Před 2 lety

    Thanks Bro for keeping it simple 😊

  • @danny.3036
    @danny.3036 Před 3 lety

    Thanks, Bro! ☕ You're awesome!

  • @audiomac
    @audiomac Před 6 měsíci

    I am confused. How do I install the package?! I can't find any instructions on how to install it!

  • @johnbeal6592
    @johnbeal6592 Před rokem

    How can i add on this and make it open multiple files and be able to play lot more songs and some other features too

  • @kemann3815
    @kemann3815 Před 2 lety

    You are the best bro!❤

  • @rudypeter9720
    @rudypeter9720 Před 6 měsíci

    Thank you so much

  • @seamkh2202
    @seamkh2202 Před 2 lety

    Thank​ bro for video

  • @eugenezuev7349
    @eugenezuev7349 Před 4 měsíci

    gorgeous!

  • @nomatter2444
    @nomatter2444 Před 3 lety +1

    Nice video, But why the File work only with wav Script?
    What about the others?

  • @augischadiegils.5109
    @augischadiegils.5109 Před 3 lety

    Very nice

  • @sihleeundefined1208
    @sihleeundefined1208 Před 3 lety

    Great video Broo THANKS🤘🏿....Are you still going to do more videos on audio? How do eye have more than one song? and how to create a desktop of my mp3 player?

    • @BroCodez
      @BroCodez  Před 3 lety +1

      maybe, it depends on the demand

  • @kemann3815
    @kemann3815 Před 2 lety

    Great

  • @smburhan6323
    @smburhan6323 Před rokem

    Hi Bro! Like im making a game and want to have a background music, that once the music stops, the next music in an array starts. But like you said bout the gui or Scanner bit, so when youre Playing a game you'd have to pause the game, click ok or scanner to continue, is there any other way.

  • @muskansalmani436
    @muskansalmani436 Před 3 lety

    Thank You very much Sirrrrr😍

  • @jazimjazz6928
    @jazimjazz6928 Před 3 lety

    heloo brozz check previous videos of bro code to learn more about java🔥🔥
    Iam not his frnd ... and i love this channel because of. he is not the like other youtubers . those who are making a simple program more complicated. But in this channel learning java makes easy for me
    I think i wasted my time on other tutorial channel..
    Bro🔥🔥🔥

  • @irushairusha1991
    @irushairusha1991 Před 2 lety

    😍😍😍😍😍

  • @MK-zf6or
    @MK-zf6or Před 3 lety

    bro is the best bro from all my bros and I haven't even met bro

  • @shibanned
    @shibanned Před 4 měsíci

    why do i have an error on javax.sound.sample.*; it says the package is not accessible

  • @jannpial256
    @jannpial256 Před 3 lety

    This is the music tape from " The Forest", am I right? Sure this sounds familiar 🙄🙄🙄

  • @johnztech1651
    @johnztech1651 Před 2 lety

    But i think this time round am going to be expert in programming with code bro

  • @leonferreira4287
    @leonferreira4287 Před rokem

    Thank you for share your knowledge!!!!!! Leon T S Ferreira

  • @bhushanpatil-nl9rm
    @bhushanpatil-nl9rm Před 3 lety +1

    System.out.println("You are a Genius");

  • @user-eo6sv1gs7p
    @user-eo6sv1gs7p Před 6 měsíci

    niceeeeee

  • @eyadhikmatabd
    @eyadhikmatabd Před 3 lety

    super awesome

  • @michealking6425
    @michealking6425 Před rokem

    I got Exception in thread "main" javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 48000.0 Hz, 24 bit, mono, 3 bytes/frame, little-endian not supported. how to fix?

  • @slonbeskonechen8310
    @slonbeskonechen8310 Před 3 lety +1

    Excellent! But how about mp3 ?

  • @minhtetpaing1695
    @minhtetpaing1695 Před 3 lety

    Thank you so much sir.

  • @mozd1729
    @mozd1729 Před 2 lety +1

    Can you tell how to increase and decrease the volume?

  • @Felipekimst
    @Felipekimst Před rokem +1

    Hello, Bro! I can already code in Javascript an I am currently learning Java. One thing that is still confusing me is this:
    AudioInputStream audioStream = AudioSystem.getInputStream(file);
    why do I have to write AudioInputStream before the name of the object/variable I am creating? what is stored in the audioStream variable is the returned value from the AudioSystem static method "getInputStream" right?
    in javascript the syntax would look something like this
    const audioStream = audioSystem.getInputStream() (if the method audioSystem.getInputStream actually existed in javascript)

    • @it04ameekanazreen59
      @it04ameekanazreen59 Před rokem

      did you figure this out?? I am having the same doubt.

    • @Felipekimst
      @Felipekimst Před rokem

      @@it04ameekanazreen59 hello and yes haah

    • @Felipekimst
      @Felipekimst Před rokem

      @@it04ameekanazreen59 in Java, its mandatory to define the tipe of the variable. boolean, int. String. But not only that, every instanxe of a class, be it custom or predefined, should also have its type stated before the name of the variable

    • @Felipekimst
      @Felipekimst Před rokem

      So if I created a class called GameClass
      Class GameClass{
      public string gameString(){
      return "youre playing a game",}
      public AnotherRandomClass createAnInstanceOfThatRandomClass (){
      return new AnotgerRandomClass();
      }
      }

    • @Felipekimst
      @Felipekimst Před rokem

      I would have to do the following
      GameClass gameClassObj = new GameClass()

  • @giuliocarchidi7653
    @giuliocarchidi7653 Před 2 lety

    in my eclipse dont find the file whyy ??
    i had followed all the passage

  • @wardones381
    @wardones381 Před 3 lety

    Very good video! But I have still one question: How can I automatically execute code after the audio finished playing?

    • @aliasgharkhoyee9501
      @aliasgharkhoyee9501 Před 3 lety

      You could add it before breaking out of a switch case, or after the while loop is done (where he prints 'bye'), etc.

  • @JarikKomarik
    @JarikKomarik Před 3 lety

    huge thank you!

  • @georgehusband3578
    @georgehusband3578 Před 3 lety

    thank you very good vid!

  • @hieudx3
    @hieudx3 Před 3 lety

    Great! Thank you Bro!

  • @hallilo7166
    @hallilo7166 Před 2 lety +1

    why am i getting this exception ? Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    AudioSystem.getAudioInputStream cannot be resolved to a type
    at sound.sound.main(sound.java:17)

  • @JacobRobinson-ii4bc
    @JacobRobinson-ii4bc Před 5 měsíci

    lets go!

  • @oskaroskarowski1472
    @oskaroskarowski1472 Před rokem +1

    anybody got: "The package javax.sound.sampled is not accessible" ??

  • @jerichiyo
    @jerichiyo Před 3 lety

    I have no errors but i has no sound at all, did I miss some eclipse configuration? My machine is linux

  • @MrLoser-ks2xn
    @MrLoser-ks2xn Před 2 lety

    Thanks

  • @GOODBOY-vt1cf
    @GOODBOY-vt1cf Před 2 lety +1

    8:03

  • @misinod8074
    @misinod8074 Před 3 lety

    Amazing, thanks

  • @sydefx5451
    @sydefx5451 Před 3 lety

    Anyone else getting this error?
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no icedtea-sound in java.library.path

  • @tiniiiiiii
    @tiniiiiiii Před rokem

    can i automtically start the sound when i run the class? without having any input?

  • @programmer5834
    @programmer5834 Před 2 lety

    Thanks bro

  • @estebanasecas
    @estebanasecas Před 3 lety

    piece of cake broh!