I can't get the music to play, I used this code:
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
SetCurrentDirectory ( "media" );
dbLoadSound ( "theme.wav", 1 );
dbLoadObject ( "universe.dbo", 1 );
dbSetObjectLight ( 1, 0 );
dbLoadObject ( "skybox2.x", 2 );
dbSetObjectLight ( 2, 0 );
dbSetObjectTexture ( 2, 3, 2 );
dbScaleObject ( 2, 5000, 5000, 5000 );
dbPositionCamera ( 100, 550, -100 );
float fCameraAngleX = 0.0f;
float fCameraAngleY = 0.0f;
while ( LoopGDK ( ) )
{
dbControlCameraUsingArrowKeys ( 0, 5.0f, 0.3f );
dbPlaySound ( 1 );
fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.4f );
fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.4f );
dbXRotateCamera ( fCameraAngleX );
dbYRotateCamera ( fCameraAngleY );
dbSync ( );
}
return;
}
I don't get any errors, there's just no music playing, i made sure the music is in the right directory, etc.
I probably used the command wrong, let me know
thank you
Michel Cilissen - CiliSoft Software Solutions
michel@techblog24.com - http://www.cilisoft.tk