开发者

better way to load sound in android game than load from res

开发者 https://www.devze.com 2023-02-19 21:40 出处:网络
I wonder how\'s the best way to load sound files in Game? loading from res seems so slo开发者_JAVA百科w, and I don\'t want that kind of lag happen in my game. is there any other way to load sound than

I wonder how's the best way to load sound files in Game?

loading from res seems so slo开发者_JAVA百科w, and I don't want that kind of lag happen in my game. is there any other way to load sound than load it from res file?


Even using AudioTrack causes lag as the audio buffer fills up.

Maybe a game developer can pipe up here, but my general sense from working with audio in Android is that precise timing can be difficult. Maybe someday we'll get OpenAL and this might change?

0

精彩评论

暂无评论...
验证码 换一张
取 消