Patch: Fixed category change issues in coreaudio_dev.c (iPhone)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This diff contains 3 changes:

- Moved code for setting audiocategory PlayAndRecord from ca_factory_init to create_audio_unit

There is no use for setting the AudioCategory in ca_factory_init. If the app uses a different category when not in-call, this will only interfere with the app.
However, the call will fail if we're not in PlayAndRecord when running create_audio_unit, so there's no reason to not have it there.

- Removed propListener

This function actually does nothing! Away with it.

- Set audiocategory in interruptionListener

After interruption, some other app may have changed the audiocategory, so it should be reset to PlayAndRecord.





Magnus Gal?en

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110314/2bf376ea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coreaudio_dev.c.diff
Type: application/octet-stream
Size: 5482 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110314/2bf376ea/attachment.diff>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110314/2bf376ea/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux