Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1802] iPhone audio session setting does not work

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsaudio, ios, iphone, session
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-04-15T03:02:48.000+0000
Updated2011-04-17T01:57:13.000+0000

Description

Thought this problem had been squashed in the past, but a recent helpdesk ticket clued me in that it persists. Setting an audio mode WHILE the session is active is apparently not respected: So if we do the following:

var v = Ti.Media.createSound();
v = Ti.Media.createSound({audioPlaybackMode:...});

Then there's no guarantee that the audio playback mode will be set (the initially created sound is already 'taking up' our application's audio session). Note that the audio playback mode set for 'v' MAY be respected the next time a sound plays!

We need to work out a way to manage audio session(s) so that this issue can be avoided.

Comments

  1. Jeff Haynie 2011-04-15

    (from [cb2651aaac259b475a94a8845249d040cc6e28a2]) [#1802 state:fixed-in-qa] Changed how audio sessions are managed - they're now only claimed/released when sounds start/stop. Many improvements to audio tests. http://github.com/appcelerator/titanium_mobile/commit/cb2651aaac259b475a94a8845249d040cc6e28a2"> http://github.com/appcelerator/titanium_mobile/commit/cb2651aaac259...

  2. Stephen Tramer 2011-04-15

    Interestingly, audio streaming does NOT respect the audio session mode - you may play both a stream and a sound when the mode is SOLO_AMBIENT, for example. Mystifying, but this seems to be an Apple internal.

  3. Thomas Huelbert 2011-04-15

    ipod 3rd gen, 1.4.2.e6bd67

  4. Thomas Huelbert 2011-04-15

    1.4.2.e6bd67 4.1 ipod touch

JSON Source