Commit 07841cb
authored
fix(audio): correct sample limit tracking and source leaks (#182)
Fixed a bug in OpenALAudioManager and MiniAudioManager where the engines
would continuously allocate new hardware sources without terminating
lower priority sounds, eventually exhausting all available physical sources.
Also corrected the sample count logic in MiniAudioManager to only evaluate
2D and 3D sample types rather than all playing sounds.1 parent 7e3ea1d commit 07841cb
3 files changed
Lines changed: 29 additions & 6 deletions
File tree
- Core/GameEngineDevice/Source
- MiniAudioDevice
- OpenALAudioDevice
- docs/DEV_BLOG
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
1055 | | - | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1056 | 1059 | | |
1057 | 1060 | | |
1058 | 1061 | | |
| |||
1573 | 1576 | | |
1574 | 1577 | | |
1575 | 1578 | | |
1576 | | - | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1577 | 1585 | | |
1578 | 1586 | | |
1579 | 1587 | | |
1580 | 1588 | | |
1581 | 1589 | | |
1582 | 1590 | | |
1583 | | - | |
| 1591 | + | |
1584 | 1592 | | |
1585 | | - | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1586 | 1599 | | |
1587 | 1600 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2131 | 2131 | | |
2132 | 2132 | | |
2133 | 2133 | | |
2134 | | - | |
| 2134 | + | |
2135 | 2135 | | |
2136 | 2136 | | |
2137 | 2137 | | |
| |||
2142 | 2142 | | |
2143 | 2143 | | |
2144 | 2144 | | |
2145 | | - | |
| 2145 | + | |
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments