Audio in java
I wanted to make music play in java, but I am not sure where to start. I would be fine with a link to a document explaining how to do it or anything else that would help me understand.
Please note I am using pure java, not java swing or anything else.
Thanks!
Perfect! Just what I needed. Thank you! @Bookie0
Whoops nvm this looks like it is only for javascript and python. I am trying to do this with java... @Bookie0
@GeneralBaker yea, check out how to make ur own library! :)
Ok didn't see that part but how do you do this:
To make this as light as possible on your repl's resources, audio files are played via a request system. To make a request, simply write to a named pype, /tmp/audio."
click the 3 dots next to files, and then click upload file, and then you can upload your .mp3 file or u can just put in the URL and it will take it that way.
https://docs.repl.it/tutorials/12-audio
This link will tell you how to do it:
https://www.geeksforgeeks.org/play-audio-file-using-java/
I saw this but couldn't make it work :/ If you could explain more what this means that would be great! @RYANTADIPARTHI
@GeneralBaker you just have to mold the code i gave into your own, try reading closer. If it still doesn't help, just ping me.