Jump to content
  • Advertisement
Sign in to follow this  

Reading 2 samples with FMOD

This topic is 3125 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm currently using FMOD for a game demo, and I'm having a problem to play a sample while another one us looping un background. I'm playing "Background.wav" this way (looping): 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); and when I want to play the other sample, I use this method : Void CGame::PlayDetectionSample() { FSOUND_PlaySound(FSOUND_FREE, m_pDetectionSample); } The probleme is that I don't hear the second sample, the better I had is a really short "BIP". Thanks in advance for answering. KOUAX

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!