[BUG?] RMMZ Sound output and windows 10

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
772
Reaction score
482
First Language
English
Primarily Uses
RMMV
Good evening.

I've been messing a bit with RMMZ over the past few days, and I found an interesting bug. Well, at least part of it is a bug. I'm not sure if one part is actually intended or not, so here goes.

The feature?:
In windows 10, with the default sound output of my computer set to my monitor, through display port, the sound works normally. Switching the windows default sound output via the icon in the system tray to my headphones immediately forces RMMZ sound out of the headphones instead of my monitor. The same functionality can be observed with an RMMZ game as well.

Why is this a bug?
Most applications stay bound to the sound device that was the default when they were opened. There are some programs that switch automatically, but the majority of them were designed for older version of windows, at least the ones I've noticed. Notably, browsers don't seem to do this, as one can watch a youtube video and swap freely between sound output devices and the sound will move around them, and this might be why RMMZ does it this way as well.

The bug:
In the above example, if RMMZ is outputting sound to the monitor and the monitor goes to sleep, RMMZ stops outputting sound entirely until it is relaunched. When a display port monitor shuts off, windows 10 disables it entirely, leading to a bunch of stupid window swapping shenanigans if you have multiple monitors (don't get me started on that), but because it does this, it also disables the sound device for the monitor. RMMZ apparently swaps to some other arbitrary sound device, and when the monitor comes back out of sleep, the sound from MZ is coming from whatever device it picked, not the monitor, and won't switch back to the monitor without closing and reopening the application. This, like the above, also happens to games.

The fix?
To fix the problem, the application, and games, should never change the audio output device during runtime, and stay bound to whatever the default device was when it was launched, like most windows 10 applications.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,633
Messages
1,015,134
Members
137,293
Latest member
Greencat
Top