Dennis
Dennis

Reputation: 3596

Java Application Crashes After Playing Sounds

I'm trying to make a game with bunch of sound effects added. A lot of different sound effects will be played during the gameplay and I wasn't sure how to play sounds in java so I just used the code example from the link below:

http://www.anyexample.com/programming/java/java_play_wav_sound_file.xml

However, the following error keeps coming up and crashes the application about couple minutes after. (sometimes in few seconds, sometimes in few minutes)

Invalid memory access of location 0x54008 rip=0x11c7737fd

I'm simply making a new AePlayWave object and starting it whenever it needs to be played. like this:

new AePlayWave("Effect.wav").start();

Everything is perfect except for the program randomly crashing because of this. How could I solve this?

Thanks in advance.

Upvotes: 0

Views: 231

Answers (1)

Attila
Attila

Reputation: 28782

This seems like a low-level access problem. Maybe your audio driver has a bug in the way Java is trying to access it?

Upvotes: 1

Related Questions