[SOLVED] No audio after restarting application

Ten

2020-08-12 22:37:55

Hi! Hoping someone can help me solve this issue.

Fresh install. Everything works fine... until I restart the application. On relaunching the application, there is no audio.
I'm able to get audio back if I delete gloval.sav, but this makes my save files incompatible.

System Info
Operating System: Windows 10
Game Version: 8.1b r3520

FAQ
1. The game is not muted. M / Alt + M does nothing.
2. This isn't a general PC audio issue. I still get sound from all other applications.

Things I've tried
3. Deleting everything and reinstalling - didn't work
4. Restarting the audio service for Windows - didn't work
5. Deleting the audio policy config registry key for onscripter-ru.exe - didn't work

Additional information
Not sure if this is relevant, but despite this being a fresh install that I downloaded today from https://umineko-project.org/en/downloads/
I see red text on the title screen that says "Your game is over 6 months old, it might be outdated!"

Considering all of this, and that the problem can be solved by deleting gloval.sav, it would appear that there's some kind of issue with the application rather than an issue on my end.

Thanks.

vit9696

2020-08-13 08:22:30

Whether the game is muted or not is displayed in the window title bar. You will be able to see [Sound: Off] if the game is muted. Please check. If it is not, try updating to the latest alpha version:
http://github.com/umineko-project/umine ... ses/latest
http://github.com/umineko-project/onscr ... ses/latest

Ten

2020-08-13 21:05:01

The title bar displays: 'Umineko no Naku Koro ni ~Rondo of Witch and Reasoning~ (8.1b r3520)'

I've now updated to 8.2 r3596 + OnscripterRU r3567, but unfortunately there's still no sound. And the title bar gives no indication the game is muted. And, to be sure, I deleted the ProgramData folder contents before updating. Problem is still resolved by deleting gloval.sav.

Image

vit9696

2020-08-14 09:06:23

Is the sound enabled in game preferences?

Ten

2020-08-14 09:30:53

Yes.

Image

vit9696

2020-08-17 13:56:08

Really unsure what can it be. Anything in the log? You could enable it with `use-console` ons.cfg parameter for instance.

Ten

2020-08-18 08:17:40

Uhhh...
Image

Apparently this is an issue with WASAPI. I looked it up and it's a known bug. Running this in command prompt seems to fix it:

Code:

setx SDL_AUDIODRIVER directsound
As for why it happens specifically with Umineko Project, and only after the first launch, I have no idea. I haven't seen this with any other app.
In any case, at least it's documented now?

vit9696

2020-08-18 17:08:37

Congrats! This is indeed strange. We know about this bug and in fact force directsound when initialising:

Code:

	it = ons_cfg_options.find("audiodriver");
	if (it != ons_cfg_options.end()) {
		SDL_setenv("SDL_AUDIODRIVER", it->second.c_str(), true);
	} else {
#ifdef WIN32
		// WASAPI driver that appeared in 2.0.7 is total garbage
		SDL_setenv("SDL_AUDIODRIVER", "directsound", false);
#endif
	}
You could technically write ons.cfg audiodriver=directsound, but this will likely also fail. Perhaps SDL broke something again :x

Ten

2020-08-19 08:02:35

Really weird that it fails to force directsound when it's right there in the code. I guess I should have considered driver issues from the start.

Thanks for the help.