{ "id": "62434", "key": "TIMOB-1802", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:13.000+0000", "created": "2011-04-15T03:02:48.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "audio", "ios", "iphone", "session" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:13.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

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

\n
\nvar v = Ti.Media.createSound();\nv = Ti.Media.createSound({audioPlaybackMode:...});\n
\n

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

\n

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

{html}", "attachment": [], "flagged": false, "summary": "iPhone audio session setting does not work", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126715", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:48.000+0000", "updated": "2011-04-15T03:02:48.000+0000" }, { "id": "126716", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:48.000+0000", "updated": "2011-04-15T03:02:48.000+0000" }, { "id": "126717", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ipod 3rd gen, 1.4.2.e6bd67

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:48.000+0000", "updated": "2011-04-15T03:02:48.000+0000" }, { "id": "126718", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2.e6bd67 4.1 ipod touch

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:49.000+0000", "updated": "2011-04-15T03:02:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }