[java] Sound Problem

Started by
2 comments, last by capn_midnight 18 years, 10 months ago
I'm having trouble with the background music in an app. I'm trying to play some midi files and the problem is that after a couple of minutes of playback the sound produced becomes scratchy and distorted; and on some occasions it just disappears altogether bringing my whole system down along with it. I have no clue as to how to fix this. I've tried playing the files in their own thread but this doesn't really help much. Any help would be appreciated.
Advertisement
sounds like you are calling the play method in a tight loop. code?

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]

You know what I think you're right. Thanx!
Quote:Original post by Keybot
You know what I think you're right. Thanx!


yeah, you only need to play a sound once. it will continue to play on its own.

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]

This topic is closed to new replies.

Advertisement