vlad2305m / Sound-Physics-Fabric

A Minecraft mod that provides realistic sound attenuation, reverberation, and absorption through blocks.
GNU General Public License v3.0
39 stars 6 forks source link

No In-game Sound when Rendering is Enabled #36

Closed Hyporeal closed 2 years ago

Hyporeal commented 2 years ago

I've used this mod in 1.17.1. I'm not sure what the issue is here in 1.18.

thedocruby commented 2 years ago

Please provide more information about your situation. What version of the mod are you using? What version of Fabric and Minecraft? What version of Cloth Config? What other mods are you using? What have you done to test this? Any information you can provide is greatly appreciated.

SleepyTonia commented 2 years ago

I had this issue with the previous (0.4.2) version in Minecraft 1.18. Any positional sounds stopped working with no warning. I had to disable rendering and then leave the world to reload it if I wanted sound to work as normal again.

thedocruby commented 2 years ago

This occurred for me occasionally in a development testing version for release 0.5.0, but I believe @vlad2305m did some coding magic to prevent this in the newest version. Can you try with release 0.5.0?

vlad2305m commented 2 years ago

@thedocruby I'm not sure it has been fixed. What rendering? How occasionally? (is there a pattern?) Where is the log? (It should be absolutely spammed with "Sound engine crashed: ...") How to reproduce the bug?

SleepyTonia commented 2 years ago

I hate to say this, but I went back, installed 0.4.2 with 1.18, same accompanying mods and somehow couldn't reproduce what I'd experienced last time.

thedocruby commented 2 years ago

Thanks for the update!

vlad2305m commented 2 years ago

For me various things are crushing the windows mixer, so each time I run the script:

@echo off  

if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)   
net stop audiosrv
net start audiosrv

First two lines are because it is as a .bat file on my desktop If you start cmd as admin in the first place, only the last two lines are required