xcode - Playing short sound with SystemSound or AVAudioPlayer on iOS -


creating custom spinner ios , each rotation change need play sound. sound 0.5 sec. according apple's documentation used systemsound play can't control volume hardware buttons cause audio context volume(media) , understood systemsound works in different context, ringer.

i tried use avaudioplayer there small delay when sound attaching player , glitches ui(small delay spinner doesn't rotate smoothly).

any ideas how can solved ?

i thinking somehow programmaticaly change context triggering controls working systemsound, no luck.

edited: i've made sure have 1 instance of avaudioplayer , didn;t stop playing sound paused , after spinner finished rotating stop , dispose, still same result


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -