Fixed AudioRandomContainer crash after domain reload and playing an audiosource in edit mode
Fixed AudioRandomContainer crash after domain reload and playing an audiosource in edit mode
Triggering ARC in edit mode after a domain reload crashes the editor on AudioPlayableOutput::SetTargetAudioSource.
Repro
Open the attached project (`ARC Edit Mode Crash.zip`).
Open the `SampleScene`.
Trigger a domain reload. Simplest way is to right-click on a script and select `Reimport`.
Use the test menu item `Crash Test > Trigger Audio Source` to trigger the audio source in the scene in edit mode.
Expected: The ARC plays.
Actual: The editor crashes.
Note
Only happens if the audio source resource remains the same, i.e. doesn't happen if you change the resource to a clip and back to an ARC, but still it does happen if you change the resource to a different ARC.
Prioritise and Follow this issue
0
Have a workaround or additional info about this issue?