i am new to this as u will see from my basic code however for some unknown reason my music will not play. plz help
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbMaximizeWindow();
// switch to the media directory, load our world
// and turn lighting off
SetCurrentDirectory ( "media" );
dbLoadObject ( "universe.dbo", 1 );
dbSetObjectLight ( 1, 120 );
dbSetObjectCollisionToPolygons(1);
// load a model for our sky
dbLoadObject ( "skybox2.x", 2 );
dbSetObjectLight ( 2, 0 );
dbSetObjectTexture ( 2, 3, 2 );
dbScaleObject ( 2, 5000, 5000, 5000 );
dbSetObjectCollisionOff(2);
// load music
dbLoadMusic("Jellyfsh.midi", 10);
dbSetMusicVolume(10,20);
dbPlayMusic(10);
// load and postion a gun
dbLoadObject ( "H-Tommy-Static.x", 10 );
dbRotateObject (10,-90,0,0);
dbPositionObject (10,10,-15,20);
// position the camera
dbPositionCamera ( 434, 42, -517 );
dbAutomaticCameraCollision(0,5,0);
// camera variables
float fCameraAngleX = 0.0f;
float fCameraAngleY = 0.0f;
int map_collision=0;
// our main loop
while ( LoopGDK ( ) )
{
// move the camera using the arrow keys and hide the mouse
dbControlCameraUsingArrowKeys ( 0, 3.0f, 3.0f );
dbHideMouse();
// create a rotation axis based on mouse movement and use the right/left keys to rotate
fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.3f );
fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.3f );
fCameraAngleY = dbWrapValue ( fCameraAngleY + dbRightKey ( ) * 1.0f );
fCameraAngleY = dbWrapValue ( fCameraAngleY + dbLeftKey ( ) * -1.0f );
// rotate camera
dbXRotateCamera ( fCameraAngleX );
dbYRotateCamera ( fCameraAngleY );
// update the screen
dbSync ( );
}
// return back to windows
return;
}
nubs