Page 1 of 2

[FIXED]Audio Popping on CGB games

Posted: Fri Jul 11, 2008 6:10 am
by Squall Leonhart

I just noticed a defined audio popping in Oracle of Ages, it is only audible when in the Status subscreens(since the bgm gets turned down).


[FIXED]Audio Popping on CGB games

Posted: Mon Aug 25, 2008 10:09 pm
by Squall Leonhart

I must say Blargg, your audio core is the cleanest i've heard, It doesn't even require Interpolation, I hope SNES9x implements your core, Theres an annoying metalic noise present without interpolation, but the interpolation on snes9x is much to heavy. LOL and i know thats totally off topic.

 

Taking advantage of the low clicks mode would be a good idea. Though so's your first one, Since VBA is a gba emulator, why not have CGB make use of the GBA sound core? Either one is good.

 

VBA already has settings to select between CGB/SGB/CG/SGB2/GBA, but I don't know if that efects the sound as well.


[FIXED]Audio Popping on CGB games

Posted: Tue Aug 26, 2008 7:31 am
by Squall Leonhart

Unfortunately it hasn't helped much, Infact the popping is now easily heard without even raising the pause menu [img]<fileStore.core_Emoticons>/emoticons/mellow.png[/img]/emoticons/mellow@2x.png 2x" width="20" height="20" />, regardless of whether its set to GBA or CGB.

 

However, i can't say the same for Links Awakening, which has perfectly clean audio.

This Might be a game specific bug in the main core or something.


[FIXED]Audio Popping on CGB games

Posted: Tue Aug 26, 2008 7:47 am
by spacy51

I also heard sound pops in the intro of Pokémon Crystal.

 

I have attached the wave file.


[FIXED]Audio Popping on CGB games

Posted: Tue Aug 26, 2008 8:07 am
by Squall Leonhart

SVN 631 compile can be downloaded from VisualBoyAdvance631.7z if you wish to investigate Blargg.


[FIXED]Audio Popping on CGB games

Posted: Wed Aug 27, 2008 6:37 pm
by I.S.T.

I have a GBC and Pokemon Crystal. Where exactly do I need to be for those clicks to happen? The game's battery is dead so I can't go too far...


[FIXED]Audio Popping on CGB games

Posted: Thu Aug 28, 2008 7:37 am
by spacy51

I have a GBC and Pokemon Crystal. Where exactly do I need to be for those clicks to happen? The game's battery is dead so I can't go too far...

 

 

It would be great if you cold do a recording from your GBC. Just plug a sound cable from your GBC's headphone jack into your soundcard's Line-In or Microphone jack. When using the Microphone jack, make sure Mic boost is disabled. If you don't have such a cable, a simple microphone or mobile phone recording might be enough to determine if the pops occur on real hardware.


[FIXED]Audio Popping on CGB games

Posted: Thu Aug 28, 2008 7:57 am
by spacy51

Argh, I found the problem. Change gbSound.cpp line 146 from

if ( gbHardware & 4 )

to

if ( gbHardware & 8 )

 

BTW, those clicks on Pokemon Crystal very likely occur on CGB hardware as well. Playing on a GBA should eliminate those clicks as well.

 

Nice, the clicks in Pokémon Crystal are now gone [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />

 

While changing that, I just checked the whole function and found this:

 

Gb_Apu::mode_t mode = Gb_Apu::mode_dmg;
if ( gbHardware & 1 )

Code: Select all

	mode = Gb_Apu::mode_cgb;


if ( gbHardware & 8 )


	mode = Gb_Apu::mode_agb;

There is a listing in gb.cpp:

Code: Select all

gbHardware = 1; // GB
gbHardware = 2; // GBC
gbHardware = 4; // SGB(2)
gbHardware = 8; // GBA

 

So shouldn't the highlighted value be a 2 for GBC instead of a 1 for GB?


[FIXED]Audio Popping on CGB games

Posted: Thu Aug 28, 2008 10:05 am
by I.S.T.

<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="146" data-ipsquote-contentclass="forums_Topic"><div>

I have a GBC and Pokemon Crystal. Where exactly do I need to be for those clicks to happen? The game's battery is dead so I can't go too far...

 

 

It would be great if you cold do a recording from your GBC. Just plug a sound cable from your GBC's headphone jack into your soundcard's Line-In or Microphone jack. When using the Microphone jack, make sure Mic boost is disabled. If you don't have such a cable, a simple microphone or mobile phone recording might be enough to determine if the pops occur on real hardware.

</div></blockquote>
 

Fuck! I have nothing of the sort.

 

Lack of money=tehsuck.


[FIXED]Audio Popping on CGB games

Posted: Thu Aug 28, 2008 1:08 pm
by spacy51

OK, then just tell me wether you hear the pops in the intro or not, but only after you have listened to my attached recording and know what I mean.