Jump to content
  • Advertisement
Sign in to follow this  
hadikazemi

mfc events stored?! (directx programming)

This topic is 3350 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 have problem with capture 2 sound device in same time. i have one system with 4 sound card and i want to record sound from 2 sound card in same time. i create 2 directSound device in my program. my problem is when i create two directSoundCaptureBufer and start recording from one device. after stop recording from that device with IDirectSoundCaptureBuffer_Stop(lpdscb); and then i start recording again, streamTofile() calls frequently that means in stop time, events stored and after start recording, all stored events run and streamTofile call frequently unreasonable! if i create only one capturebuffer this problem dont accure and after stop and start again recording start without call streamTofile() unreasonable! this occur independent of device 2 start or stop. some code:
		DWORD dwEvt = MsgWaitForMultipleObjects(
				NUMCAPTUREEVENTS,
				rghEvent,          
				FALSE,             
				INFINITE,          
				QS_ALLINPUT);
	 
		dwEvt -= WAIT_OBJECT_0;

		if (dwEvt < NUMCAPTUREEVENTS) 
		{
			StreamToFile();
		}
 
i debug my program and i know that in stop time, my program dont go inside if(dwEvt < NUMCAPTUREEVENTS) and therefore streamTofile() dont called in stop time.

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!