I have a probleme with 3D sounds commands and dbSyncRate command :
if I use this code, dbPositionSound don't work the sound is playing like a normal sound (no increase or decrease of sound volume if I move dbPositionListener ):
#define INITGUID
#include <dxdiag.h>
#include "DarkSDK.h"
void DarkSDK(void)
{
dbSyncOn();
dbSyncRate(60);
dbLoad3DSound("wind1.wav",1);
dbLoopSound ( 1 );
dbPositionSound ( 1 , 3000 , 0 , 3000 );
dbPositionListener ( 1300,0,1300);
while ( LoopSDK ( ) )
{
if ( dbEscapeKey ( ) )
return;
dbSync ( );
}
}
But if I use this code all works correctly (sound decrease if I move away or increase if I approach it):
#define INITGUID
#include <dxdiag.h>
#include "DarkSDK.h"
void DarkSDK(void)
{
dbLoad3DSound("wind1.wav",1);
dbLoopSound ( 1 );
dbPositionSound ( 1 , 3000 , 0 , 3000 );
dbPositionListener ( 1300,0,1300);
while ( LoopSDK ( ) )
{
if ( dbEscapeKey ( ) )
return;
dbSync ( );
}
}
please, Somebody have a solution ?