I need a dead-certain way of playing sounds with my java application. Java media player doesn't seem to be working with sound files with a duration of longer than 30 seconds.
I need a way of accessing the windows sound API from inside my java app.
I have a method that gets passed filenames and plays those files. The problem is, when I pass a .wav file that's 30 seconds long - it oftentimes fails to play the file completely.
I think that it's somethin to do with the file being context switched out and losing the processor - so I need a solution.
The code shown below works fine - with short (1 second) sound clips - but not so with any that last 30 seconds.
I'm programming on windows - and could do with some advice..