iphone - Sound engine leaking… is preloading an effect bad practice? -
in app delegate, preloading all sound effects , background music. when testing instruments, tool shows leaking memory, source being simpleaudioengine , bunch of other classes related playing sounds. preloadeffect , preloadbackgroundmusic bad? how can fix memory leaks? thank you!
preloading effects not bad practice, contrary. when sound effect plays first time, loaded preload methods. thing preloading avoid stutter or freeze while effect plays first time. large audio files can cause app pause tenth of second or possibly more.
Comments
Post a Comment