iphone - System Sound Lock -


i developing iphone app translates voice text. component transcribe third-party. until worked fine. today tried playing sound (.wav file) after making transcription , noticed cannot play (by avaudio or system sound). after debugging found out happening after initing third-party component; think component not releasing belongs system audio.

my question : there way force iphone play sound want?

have tried setting avaudiosession category?

nserror *err = nil; [[avaudiosession sharedinstance] setcategory:avaudiosessioncategoryplayback error:&err]; 

maybe other category work, example avaudiosessioncategoryplayandrecord

the best way imo save avaudiosession state (its category, example) before using third-party component , restore state afterwards.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -