gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Audio > krawall help

#13252 - zdean - Wed Dec 10, 2003 1:20 am

Hello, Can somone who is familiar with krawall please let me know how to sync the call to kramWorker()? I see in the example source file the following.

while( !VCOUNT );
while( VCOUNT ); // wait for line 0

*( ( unsigned short* )0x5000000 ) = ( 5 << 0 ) + ( 22 << 5 ) + ( 31 << 10 );
kramWorker(); // do the stuff
*( ( unsigned short* )0x5000000 ) = 0;

and the users manual says to create a VCountMatchInterrupt, but I am not sure where this function is called from? Thanks for any advice.