Commit e7a765e
committed
oto: use a longer retry budget for AVAudioSessionErrorCodeCannotStartPlaying
This error indicates the app is not active (e.g. backgrounded or in
the middle of an interruption), so it can take noticeably longer to
clear than the other transient AudioQueueStart errors. Bump the retry
budget for this code to ~10s in both newContext and resume, while
keeping the shorter ~2.8s budget for Unspecified and
CannotInterruptOthers. newContext now also uses sleepTime() instead
of a fixed 10ms sleep, resolving the prior TODO.
Updates #931 parent b68f3d2 commit e7a765e
1 file changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
| |||
0 commit comments