Commit c4c7cf3
committed
Cleanup legacy browser support in libopenal.js. NFC
This brings libopenal.js inline with libwebaudio.js in a couple
of ways:
- Only support webkitAudioContext on older safari versions.
- Drop support for `new AudioContext` that does not accept options.
This change should make is easy for us to remove this support
once we drop support for Safari < 14.5.1 parent 86ea17d commit c4c7cf3
2 files changed
Lines changed: 23 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
1649 | 1655 | | |
1650 | 1656 | | |
1651 | 1657 | | |
1652 | | - | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
1653 | 1663 | | |
1654 | 1664 | | |
1655 | 1665 | | |
| |||
2047 | 2057 | | |
2048 | 2058 | | |
2049 | 2059 | | |
2050 | | - | |
| 2060 | + | |
2051 | 2061 | | |
2052 | 2062 | | |
2053 | 2063 | | |
| |||
2077 | 2087 | | |
2078 | 2088 | | |
2079 | 2089 | | |
2080 | | - | |
| 2090 | + | |
2081 | 2091 | | |
2082 | 2092 | | |
2083 | 2093 | | |
| |||
2142 | 2152 | | |
2143 | 2153 | | |
2144 | 2154 | | |
2145 | | - | |
2146 | | - | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2147 | 2160 | | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
| 2161 | + | |
2154 | 2162 | | |
2155 | 2163 | | |
2156 | 2164 | | |
| |||
2372 | 2380 | | |
2373 | 2381 | | |
2374 | 2382 | | |
2375 | | - | |
| 2383 | + | |
2376 | 2384 | | |
2377 | 2385 | | |
2378 | 2386 | | |
2379 | 2387 | | |
2380 | 2388 | | |
2381 | 2389 | | |
2382 | | - | |
| 2390 | + | |
2383 | 2391 | | |
2384 | 2392 | | |
2385 | 2393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments