Bonjour,
J'utilise actuellement FMOD, et j'ai un soucis pour lire un sample tout en ayant un autre fond sonore qui tourne en boucle.
Je joue donc le "Background.wav" en fond (en boucle):
Code C/C++ :
m_pBackgroundSample = FSOUND_Sample_Load(FSOUND_UNMANAGED, "Background.wav", FSOUND_NORMAL, 0, 0);
m_nBackgroundChannel = FSOUND_PlaySoundEx(FSOUND_FREE, m_pBackgroundSample , NULL, FALSE);
FSOUND_SetLoopMode(m_nBackgroundChannel , FSOUND_LOOP_NORMAL);
et quand je veux jouer mon sample, j'utilise la fonction :
[code=cpp]
Void CGame::PlayDetectionSample()
{
FSOUND_PlaySound(FSOUND_FREE, m_pDetectionSample);
}
[/cpp]
Le problème est donc que je n'entends pas le deuxième sample, au mieux j'entends juste un "BIP" qui ne dure qu'un petit quart de seconde.
Merci d'avance pour vos réponses.
KOUAX