Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamAudioSource debug problem #344

Closed
Roceh opened this issue Apr 12, 2024 · 0 comments
Closed

SteamAudioSource debug problem #344

Roceh opened this issue Apr 12, 2024 · 0 comments

Comments

@Roceh
Copy link

Roceh commented Apr 12, 2024

System Information

  • Steam Audio version: 4.5.3
  • Unity version: 2022.3.21f1
  • Operating System and version:Windows 11

Issue Description
Exception during initial startup when connected to unity with visual studio.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Attach to unity from visual studio
  2. When playing a scene with SteamAudioSource present, visual studio generates an exception

Stops here:

 ~SteamAudioSource()
 {
         mThis.Free();
 }

this seems to stop it occuring.

 ~SteamAudioSource()
 {
         if (mThis.IsAllocated)
            mThis.Free();
 }

I belive as Awake is not called in editor (where mThis is created), but object is still created hence trigger destructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant