Beispiel #1
0
void dialog_waverec(HWND hWnd)
{
#if defined(SUPPORT_RECVIDEO)
	const bool bShiftDown = (::GetKeyState(VK_SHIFT) < 0);
	recvideo_close();
#endif	// defined(SUPPORT_RECVIDEO)

	sound_recstop();

	TCHAR szPath[MAX_PATH];
	file_cpyname(szPath, bmpfilefolder, NELEMENTS(szPath));
	file_cutname(szPath);
	file_catname(szPath, szWaveFile, NELEMENTS(szPath));

	UINT8 bCheck = FALSE;
	if ((dlgs_createfilenum(hWnd, &fpWave, szPath, NELEMENTS(szPath))) &&
		(sound_recstart(szPath) == SUCCESS))
	{
		file_cpyname(bmpfilefolder, szPath, NELEMENTS(bmpfilefolder));
		sysmng_update(SYS_UPDATEOSCFG);
		bCheck = TRUE;
	}

#if defined(SUPPORT_RECVIDEO)
	if (bShiftDown)
	{
		file_cutext(szPath);
		file_catname(szPath, _T(".avi"), NELEMENTS(szPath));
		recvideo_open(hWnd, szPath);
	}
#endif	// defined(SUPPORT_RECVIDEO)

	xmenu_setwaverec(bCheck);
}
Beispiel #2
0
void dialog_waverec(HWND hWnd)
{
	UINT8	bCheck;
	OEMCHAR	szPath[MAX_PATH];

	bCheck = FALSE;
	sound_recstop();
	file_cpyname(szPath, bmpfilefolder, NELEMENTS(szPath));
	file_cutname(szPath);
	file_catname(szPath, szWaveFile, NELEMENTS(szPath));
	if ((dlgs_createfilenum(hWnd, &fpWave, szPath, NELEMENTS(szPath))) &&
		(sound_recstart(szPath) == SUCCESS))
	{
		file_cpyname(bmpfilefolder, szPath, NELEMENTS(bmpfilefolder));
		sysmng_update(SYS_UPDATEOSCFG);
		bCheck = TRUE;
	}
	xmenu_setwaverec(bCheck);
}