vhd244
New Member
Posts: 11
Posts: 11
|
Post by vhd244 on Jul 31, 2023 16:56:17 GMT
Hi, Every now and then, the audio will play multiple times at once. Please see video to better understand what I mean: streamable.com/52rbzpYou can hear it (especially for the last one) that its playing the same audio clip multiple times on a single click making it sound distorted. Any help is appreciated, thanks.
|
|
|
Post by DarkTonic Dev on Jul 31, 2023 18:43:30 GMT
If you want to find out why it's playing, turn on "Log Sounds" for the Sound Group and watch the Console window. There if you read the stack traces you'll find the script that is playing them.
|
|
vhd244
New Member
Posts: 11
Posts: 11
|
Post by vhd244 on Jul 31, 2023 22:35:22 GMT
If you want to find out why it's playing, turn on "Log Sounds" for the Sound Group and watch the Console window. There if you read the stack traces you'll find the script that is playing them. I can see the log but it doesn't go into why its playing the same sound multiple times at once. If you see the video, I am clicking on the preview audio button built into Master Audio and not triggering it from a script. It does say in the log that its only being triggered once, but its playing the same audio file multiple times at once (randomly but enough times to notice). I'll also note that this happens randomly to every single sound clip added to Master Audio. Edit: Also noting that this happens whether its previewed from the master audio play button or from a playmaker action. 
|
|
|
Post by DarkTonic Dev on Aug 1, 2023 1:15:40 GMT
This is in edit mode or play mode that this happens?
What version of Unity are you using?
This is bizarre.
|
|
vhd244
New Member
Posts: 11
Posts: 11
|
Post by vhd244 on Aug 1, 2023 3:40:20 GMT
It happens in edit and play mode. Unity 2021.3.8f1 Master Audio 2022
Everything should be in default settings. It's mainly just a bunch of groups. I also just updated Master Audio to 1.0.5 and unfortunately the issue still persists.
Edit: One extra note, I did upgrade Master Audio versions in this project.
|
|
|
Post by DarkTonic Dev on Aug 1, 2023 15:37:32 GMT
I'm trying on my Example Scene and I can't make this happen at all. Can you send me an example scene so I can try and reproduce it?
|
|
vhd244
New Member
Posts: 11
Posts: 11
|
Post by vhd244 on Aug 1, 2023 22:29:19 GMT
|
|
|
Post by DarkTonic Dev on Aug 2, 2023 2:40:33 GMT
Thanks I'll check tomorrow and report back.
|
|
|
Post by DarkTonic Dev on Aug 2, 2023 14:03:57 GMT
I get a bunch of errors importing that Scene. Try exporting it as a package so it includes the prefabs and everything.
|
|
vhd244
New Member
Posts: 11
Posts: 11
|
Post by vhd244 on Aug 2, 2023 19:15:35 GMT
|
|
|
Post by DarkTonic Dev on Aug 3, 2023 0:22:42 GMT
I requested access, and waiting for you to approve.
|
|
vhd244
New Member
Posts: 11
Posts: 11
|
Post by vhd244 on Aug 3, 2023 2:25:09 GMT
Done, thanks
|
|
|
Post by DarkTonic Dev on Aug 3, 2023 14:03:04 GMT
I clicked the preview button during edit and play mode and I'm not seeing any extra plays...have you tried in a new empty project? Maybe something is corrupted in yours?
You could also try reinstall Master Audio after completely removing it.
1) Delete all MasterAudio folders from Project view. 2) Restart Unity. 3) Reinstall from Asset Store.
|
|
vhd244
New Member
Posts: 11
Posts: 11
|
Post by vhd244 on Aug 3, 2023 17:12:04 GMT
A Million thanks for the help, you spent a lot of time on this and it was a Unity issue (The DSP Buffer Size) or mainly latency issues that I believe are causing this "lag". Thanks for helping me get to the solution. Edit: does Master Audio have a setting for latency?
|
|
|
Post by DarkTonic Dev on Aug 3, 2023 19:53:14 GMT
You're welcome. No it doesn't. Use the normal Unity controls. We aren't replacing the audio engine at all.
|
|