0

I'm currently having problems using OpenAL with Eclipse LWJGL. Com.sun.media.sound.WaveFileReader could not be imported, so com.sun.media itself did not exist. How should I solve it?

I've dug deep into this and googled it, but haven't found a meaningful answer.

  • 2
    Recent versions of Java do not allow `com.sun.media.sound` classes to be accessed directly (see [this question](https://stackoverflow.com/q/70643111/2670892)) What, exactly, is trying to do the import? – greg-449 Aug 04 '23 at 15:58
  • I'm trying to access the WaveFileReader to put sound into my game :) – CoderGodToRun Aug 04 '23 at 23:39
  • 2
    Anything that is telling you to access WaveFileReader directly is hopelessly out of date. Using it directly was **never** part of the official sound API. You should use the official [tag:javasound] APIs such as `AudioSystem.getAudioInputStream` or `AudioSystem.getClip` – greg-449 Aug 05 '23 at 06:38
  • thanks i used AudioSystem class and it works fine! :) – CoderGodToRun Aug 05 '23 at 14:31

0 Answers0