Openal Conext switch
"Susmith M R (RBEI/ECF1)" <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <4CA939AE7204EA41A497B457A05601C52A6A2765B5@SGPMBX02.APAC.bosch.com> |
Hi all, I have created one openal based streamer in iphone. OpenAL initialization part ( ie. Opening the device, creating the context and making the context ) is done in Iphone HMI part ( .mm files ). In the openal streamer, I have a thread which is always running when the data is available in my queue. This streamer will use the context set by the iphone hmi and execute all the al commands. But when some interruption comes (Screen Lock,sleep), AudioSession will analyze it and do the openal context suspend or resume. This time also the streamer thread will be executing the al commands. When the context become suspended or becomes null what will happen to the alcommands? I read some documents from iphone programming that al command will still continue to run without effect. But is there any possible way to get a notification from the openal side or audiosession side that my context is null? Since my application is in a infinite poll loop, I can't always check "whether the context is null or not null? Is there any possible solution to this? Best Regards, Susmith MR _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal