Page 3 of 3

[Fixed]We really must fix the CGB Audio + States bug

Posted: Wed Sep 01, 2010 8:43 pm
by Squall Leonhart

we know.


[Fixed]We really must fix the CGB Audio + States bug

Posted: Wed Sep 01, 2010 11:08 pm
by mrboots

Hi, new member here. I'm sort of having the same problem except that I am having an issue with there being no sound effects when playing my game. The game in question is Golden Sun 2. I was originally playing it on VBA version 1.8.0-beta 3. However when I switched over to VBA-M it ran BEAUTIFULLY except that I had no sound effects to the game at all. Had music, and some sound but mostly no sound effects. Any suggestions on how I can fix this problem? Is it even fixable? Anything else you need to know just ask and I will see what I can do. Thanks!


[Fixed]We really must fix the CGB Audio + States bug

Posted: Thu Sep 02, 2010 8:48 am
by Squall Leonhart

don't use save states. Golden sun 1 and 2's sound works fine until you load a state.


[Fixed]We really must fix the CGB Audio + States bug

Posted: Sat Sep 04, 2010 3:05 pm
by Squall Leonhart

Blargg, it seems this isn't fully fixed after all, alot of members are posting about sounds/channels being missing upon loading a state.


[Fixed]We really must fix the CGB Audio + States bug

Posted: Thu Sep 09, 2010 11:40 pm
by jbo_85

It stopped working after revision 937.


[Fixed]We really must fix the CGB Audio + States bug

Posted: Fri Sep 10, 2010 6:04 am
by Squall Leonhart

Shuffle2 quietened some warnings around that time.

 

in effects_buffer.cpp

Code: Select all

if ( buf->non_silent() && ( buf->echo == (bool)echo_phase ) ) 	                                

to

if ( buf->non_silent() && ( buf->echo == !!echo_phase ) )

 

in Gb_apu_state.cpp

Code: Select all

#define REFLECT( x, y ) (save ?       (io->y) = (x) :         (x) = (io->y)          )

to

#define REFLECT( x, y ) (save ?       (io->y) = (x) :         (x) = !!(io->y)        )

 

edit

definitely seems to be the changes to Gb_apu_state.cpp


[Fixed]We really must fix the CGB Audio + States bug

Posted: Fri Sep 10, 2010 7:48 am
by Squall Leonhart

Pending any possible rewrite to the code, this has been fixed in 955.