Open AlmazowFaradey opened 3 months ago
Hi @AlmazowFaradey - I am not able to reproduce this issue on our end. I created a standalone project in Unity 2022.3.14 and imported latest version of Steam Audio.
Let me know if there is a standalone minimal repro you are able to share.
I can't confirm if SteamAudio is broken like in AlmazowFaradey's case in my own project, but I've managed to reproduce the debugging issue in a separate smaller project.
On my side, I used Unity 2022.3.39f1 using URP with the latest version of Steam Audio (4.5.3). I also use Visual Studio 2022.
Steps to Reproduce
I've found that this issue can be avoided by turning on the debugger during runtime well after Unity has entered Play Mode
I've encountered this issue on two computers, one running Windows 10 and another running Windows 11.
I can provide the full project if needed, but creating a new project using Unity's 2D URP template should be sufficient for reproducing the issue.
@jackyyang09 This issue was fixed in the following commit: https://github.com/ValveSoftware/steam-audio/commit/c565da273e045566c440b57de323260e6932c8ab. You can get the latest version of SteamAudioSource.cs
, which should resolve the issue.
This will, of course, be part of the next official release of Steam Audio.
System Information Please provide the following information about your system:
Issue Description SteamAudio does not create sound properly in any way, it does not reflect off the walls, is not calculated, is not muted in case of obstacles (Does not work at all), but when debugging starts in the visual studio, instantly (When the game is not even included in the Editor), debugging immediately stops in the SteamAudioSource file.CS and raises an exception stating that "Handle is not initialized".
Detailed error: System.InvalidOperationException: Handle is not initialized. at System.Runtime.InteropServices.GCHandle.Free () [0x00034] in:0
at SteamAudio.SteamAudioSource.Finalize () [0x00000] in E:\Path-To-Project\Project_Name\Assets\Plugins\SteamAudio\Scripts\Runtime\SteamAudioSource.cs:230
Steps To Reproduce Steps to reproduce the behavior: