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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -