0
0

Hello, I´m an unskilful user of Fmod and I´m using your engine for developing a videogame as a student project at my university. I´m using Fmod 3.7.1.0 in conjunction with the graphics engine 3DState version 6, in Windows Xp with a Sound Blaster Audigy 2 NX (USB external) . I´m trying to create 3D sounds placed in the space synchronized with the graphics.The sounds are well panned and attenuated when I use another sound card (Sound Blaster live). However, when I use the Sound Blaster Audigy the sounds remain correctly panned and attenuated but are audible only through
the front speakers. The code I´m using to inictialize the sound system is as follows:

//variables locales
bool dll_correcto;
bool ini_fmod_correcto;
int num_intentos_inicializacion=0;
char mensaje[256];

//inicia el sistemaFmod
if (FSOUND_GetVersion() < FMOD_VERSION)//comprueba que el dll se //corresponde con el .h
{
    dll_correcto=false;
    //assert(dll_correcto);
    return false;
}


FSOUND_SetOutput(-1);//selecciona autodetección

//inicializa el sistema de sonido a 44100 Hz y 64 canales soft
while (!FSOUND_Init(44100, 64, 0)&&num_intentos_inicializacion<15)
{
    Sleep(100);
    num_intentos_inicializacion++;
}

if(num_intentos_inicializacion>=15)
{
    cout << "Error iniciando Fmod\n";
    cout <<  FMOD_ErrorString(FSOUND_GetError());
    strcpy (mensaje,"Error iniciando Fmod\n");
    strcat (mensaje,FMOD_ErrorString(FSOUND_GetError()));
    MessageBox(0,mensaje,"Error iniciando sistema de sonido",MB_OK);
    ini_fmod_correcto=false;
    //assert(ini_fmod_correcto);
    return false;   
}

FSOUND_SetSpeakerMode(FSOUND_SPEAKERMODE_SURROUND);

I would greatly appreciate your advice on how to solve the problem. Best Regards, Juan Rodriguez

  • You must to post comments
0
0

Hello again. I forgot to tell you that the code samples that came with Fmod worked well in my computer, the sound is audible through all the spekars. I made also another demo, a ball with a sound associated that moves in the screen ,all the speakers work in that demo. The code I used to to inictialize the sound system in that demo is the same that I showed you in the last post.
Could you help me, please? Thank you for your time

  • You must to post comments
0
0

hello again, finally I have managed to solve the problem. My mistake was to call function FSOUND_Sample_Load setting the mode parameter as FSOUND_HW3D||FSOUND_16BITS||FSOUND_LOOP_OFF||FSOUND_MONO instead of FSOUND_HW3D|FSOUND_16BITS|FSOUND_LOOP_OFF|FSOUND_MONO
. Many thanks for your replies and best regards

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.