[FIXED]Muting sound in GB(C?) games.

Locked
User avatar
Vague Rant
Junior Member
Posts: 4
Joined: Tue Mar 25, 2008 7:56 am

[FIXED]Muting sound in GB(C?) games.

Post by Vague Rant »

I don't have much experience with running GB/C games in VBA-M, and Kirby's Dream Land 2 is the only one I've got at the moment, but I was attempting to play with the sound muted just now, and no luck. Even though the Mute option was checked (and worked fine for GBA games), sound played anyway, the only way I could get it to shut up was to turn sound off outright, which of course makes the game run at ridiculous speeds until you throttle it. Even so, the emulator is still running at 108-110%, which, while not particularly bothersome, probably isn't exactly optimal.

 

My setup right now is to use SGB, with the border displayed. Switching to other Game Boy modes didn't help any. Throttle is "100%", frame skip of 0. Audio is turned off, but is nominally DirectSound, sync game to audio is checked but obviously pointless with audio off, volume is at Mute, 25%, sampling rate is 44100Hz. I'm running Windows XP SP2, and the March 10 precompiled binary (461). If there's any other info that'd be useful, feel free to ask.

 

Summary: "mute" doesn't work on GB games.

Last edited by Vague Rant on Thu Jan 22, 2009 5:13 am, edited 1 time in total.
Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

[FIXED]Muting sound in GB(C?) games.

Post by Squall Leonhart »

Bug expanded,

 

Mute does not affect GB and GBC games,

Mute Does effect GBA games, but once enabled, mute cannot be disabled.

 

Effects

OpenAL

Xaudio

DirectSound

 

Submitted to source forge bug tracker.

Last edited by Squall Leonhart on Tue Mar 25, 2008 9:51 pm, edited 1 time in total.
User avatar
Vague Rant
Junior Member
Posts: 4
Joined: Tue Mar 25, 2008 7:56 am

[FIXED]Muting sound in GB(C?) games.

Post by Vague Rant »

Hmm. I've been fooling with it some more, and it doesn't seem like that's 100% accurate. You can get sound to unmute again on GBA by hitting Options > Audio > On. After hitting mute in GBA, neither On or Off is checked in that menu, but once you hit On, audio becomes unmuted again. Obviously this isn't how it's supposed to work, and you're right that once you've muted you can't unmute by unchecking the mute function, but hey, the more details, the easier the problem can be found, I imagine.

mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

[FIXED]Muting sound in GB(C?) games.

Post by mudlord »

Okay, which SVN version did this first break in?

User avatar
Vague Rant
Junior Member
Posts: 4
Joined: Tue Mar 25, 2008 7:56 am

[FIXED]Muting sound in GB(C?) games.

Post by Vague Rant »

Well, I'm actually pretty sure it's two separate problems. The muting on GBA issue is actually pretty minor, old SVNs and the original 1.8.0 and such had in the sound menu "Off", "Mute" and "On". In the more recent SVNs, "Mute" has been moved to the "Volume" menu, but it's really still one of the three options; that's why "On" is how you get the sound back. In other words, "Mute" is still working fine by the old system, it's just a bit more confusing the way it's been rearranged.

 

Whether it was this rearranging that caused the other problem, with the GB/C refusing to mute, I'm not sure, but I'll edit this post once I've found the SVN where it happened.

 

EDIT1: OK, they're definitely two separate bugs. Check out SVN 156; "Mute" has been moved to the "Volume" menu and works on GBA in the semi-confusing way described above, but GB/C muting still works. I've almost got the exact version where this bug was introduced, so expect another edit soon.

 

EDIT2: Well, I've found the offending SVN update to the best of my ability. Somewhere between 157 and 176, the GB/C muting bug was introduced. I can't pinpoint it exactly because I don't know jack about compiling stuff, so I'm just using the precompiled versions from the site, but in 156, GB/C muting works fine, and in 176, it doesn't work at all. Hopefully this will make it easier for someone who actually knows what they're doing to find the culprit SVN. Good luck.

Last edited by Vague Rant on Wed Mar 26, 2008 1:07 am, edited 1 time in total.
Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

[FIXED]Muting sound in GB(C?) games.

Post by Squall Leonhart »

well, how about we remove mute completely and just make a 0% volume to mute?, technically its the same thing.

 

Edit

What the heck, Volume itself is nuked for GB/C

Last edited by Squall Leonhart on Wed Mar 26, 2008 1:11 am, edited 1 time in total.
xKiv
Junior Member
Posts: 36
Joined: Fri Mar 21, 2008 9:47 am

[FIXED]Muting sound in GB(C?) games.

Post by xKiv »

well, how about we remove mute completely and just make a 0% volume to mute?

 

Because mute is "supposed" (= users [1] expect it) to toggle between no-sound and whatever-it-was-before-muting (which might have been something else than 100% volume, all channels enabled, ...)?

 

 

[1] at least users who are used to TV remotes ...

mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

[FIXED]Muting sound in GB(C?) games.

Post by mudlord »

Somewhere between 157 and 176, the GB/C muting bug was introduced.

 

blargg's sound core perhaps..?

 

His core is a entirely different animal to what was in there previously.

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

[FIXED]Muting sound in GB(C?) games.

Post by spacy51 »

An easy workaround would be to remove the mute and volume stuff from the core and just let the sound output plugin handle it.

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

[FIXED]Muting sound in GB(C?) games.

Post by Squall Leonhart »

not really, because then that leaves us with the problem of people wanting to play without vba sound, and since turning off sound can break audio related events.

Locked