Page 1 of 1

[SOLVED] No audio after restarting application

Posted: 13 Aug 2020, 01:37
by Ten
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.

Re: No audio after restarting application

Posted: 13 Aug 2020, 11:22
by vit9696
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

Re: No audio after restarting application

Posted: 14 Aug 2020, 00:05
by Ten
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

Re: No audio after restarting application

Posted: 14 Aug 2020, 12:06
by vit9696
Is the sound enabled in game preferences?

Re: No audio after restarting application

Posted: 14 Aug 2020, 12:30
by Ten
Yes.

Image

Re: No audio after restarting application

Posted: 17 Aug 2020, 16:56
by vit9696
Really unsure what can it be. Anything in the log? You could enable it with `use-console` ons.cfg parameter for instance.

Re: No audio after restarting application

Posted: 18 Aug 2020, 11:17
by Ten
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: Select all

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?

Re: No audio after restarting application

Posted: 18 Aug 2020, 20:08
by vit9696
Congrats! This is indeed strange. We know about this bug and in fact force directsound when initialising:

Code: Select all

	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

Re: No audio after restarting application

Posted: 19 Aug 2020, 11:02
by Ten
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.