comparison src/gb/GB.cpp @ 525:fa7676dbf6f2

sound recording test now works.
author Robert McIntyre <rlm@mit.edu>
date Sun, 24 Jun 2012 13:12:51 -0500
parents 690811e54b51
children 8960150ec761
comparison
equal deleted inserted replaced
524:7ef5c73ea8fa 525:fa7676dbf6f2
3221 { 3221 {
3222 gbInterrupt |= 16; 3222 gbInterrupt |= 16;
3223 } 3223 }
3224 3224
3225 extButtons = (newmask >> 18); 3225 extButtons = (newmask >> 18);
3226 speedup = (extButtons & 1) != 0; 3226 speedup = (extButtons & 1) != 0;
3227 3227
3228 VBAMovieResetIfRequested(); 3228 VBAMovieResetIfRequested();
3229 //printf("RLM: before Lua functions\n"); 3229 //printf("RLM: before Lua functions\n");
3230 //CallRegisteredLuaFunctions(LUACALL_BEFOREEMULATION); 3230 //CallRegisteredLuaFunctions(LUACALL_BEFOREEMULATION);
3231 //printf("RLM: after Lua functions\n"); 3231 //printf("RLM: after Lua functions\n");
3751 3751
3752 soundTicks -= clockTicks; 3752 soundTicks -= clockTicks;
3753 while (soundTicks < 0) // must be < 1 when soundtick_t is real data type 3753 while (soundTicks < 0) // must be < 1 when soundtick_t is real data type
3754 { 3754 {
3755 soundTicks += SOUND_CLOCK_TICKS; 3755 soundTicks += SOUND_CLOCK_TICKS;
3756 3756 printf("gbSoundTick()\n");
3757 gbSoundTick(); 3757 gbSoundTick();
3758 } 3758 }
3759 3759
3760 register_IF = gbInterrupt; 3760 register_IF = gbInterrupt;
3761 3761