Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to search a keyword in all files and folders in c++ or qt3.3.2 Pin
B.L.MALYADA DEVI28-May-06 23:29
B.L.MALYADA DEVI28-May-06 23:29 
AnswerRe: How to search a keyword in all files and folders in c++ or qt3.3.2 Pin
Nibu babu thomas28-May-06 23:39
Nibu babu thomas28-May-06 23:39 
GeneralRe: How to search a keyword in all files and folders in c++ or qt3.3.2 Pin
Hamid_RT29-May-06 0:22
Hamid_RT29-May-06 0:22 
AnswerRe: How to search a keyword in all files and folders in c++ or qt3.3.2 Pin
_AnsHUMAN_ 29-May-06 0:10
_AnsHUMAN_ 29-May-06 0:10 
GeneralRe: How to search a keyword in all files and folders in c++ or qt3.3.2 Pin
Hamid_RT29-May-06 0:21
Hamid_RT29-May-06 0:21 
GeneralRe: How to search a keyword in all files and folders in c++ or qt3.3.2 [modified] Pin
_AnsHUMAN_ 29-May-06 0:33
_AnsHUMAN_ 29-May-06 0:33 
AnswerRe: How to search a keyword in all files and folders in c++ or qt3.3.2 Pin
Hamid_RT29-May-06 0:34
Hamid_RT29-May-06 0:34 
Questionhelp me Pin
sunita ramesh28-May-06 23:18
sunita ramesh28-May-06 23:18 
hi all,

I have the following coding to extract audio from video..

void CWave::ReadWaveFile(unsigned long *sp_long_In)<br />
{<br />
	char	*sp_char,  cConst[3];<br />
	char	cBuf[3];<br />
	unsigned long	*sp_long;<br />
	int		i, j;<br />
	int		iflag; //WaveCount, <br />
	WAVE_CHARTOLONG	Wave_chartolong;<br />
	<br />
	sp_char = m_DECbuf;<br />
	m_DECwavdata = new unsigned long[m_DECcount]; <br />
	sp_long = sp_long_In;<br />
	cConst[0] = 'P';<br />
	cConst[1] = 'C';<br />
	cConst[2] = 'M';	 <br />
	i = 1;<br />
	j = 0;<br />
	while( i <= (m_DECcount * 2))<br />
	{<br />
		sp_char = m_DECbuf + sp_long[i];			Wave_chartolong.CharBuff[0] = *(sp_char + 4); <br />
		Wave_chartolong.CharBuff[1] = *(sp_char + 5);<br />
		Wave_chartolong.CharBuff[2] = *(sp_char + 6);<br />
		Wave_chartolong.CharBuff[3] = *(sp_char + 7);<br />
		sp_char += Wave_chartolong.UL; <br />
		memcpy(cBuf, sp_char, 3);<br />
		iflag = memcmp(cBuf, cConst, 3);<br />
		if(iflag == 0)<br />
		{	<br />
			m_DECwavdata[j] = (unsigned long)sp_char;	<br />
			j = j + 1;<br />
		}<br />
		i += 2;<br />
<br />
	}<br />
<br />
	ReadyPlayWave();<br />
}

void CWave::ReadyPlayWave()<br />
{<br />
	lpFormat = new WAVEFORMATEX;<br />
	lpFormat->wFormatTag = 1;<br />
	lpFormat->nChannels = 1;<br />
	//lpFormat->nSamplesPerSec = 16000;<br />
	//lpFormat->nAvgBytesPerSec = 16000;<br />
	//lpFormat->nSamplesPerSec = 8000;<br />
	//lpFormat->nAvgBytesPerSec = 8000;<br />
	lpFormat->nSamplesPerSec = 7500;<br />
	lpFormat->nAvgBytesPerSec = 7500;<br />
	lpFormat->wBitsPerSample = 8;<br />
	lpFormat->nBlockAlign = 1;<br />
	lpFormat->cbSize = 0;<br />
<br />
}


Can any one please review it.
here Audio is extracted in ReadWave file and we can play the video by ReadyPlaywave ().


I can able to play audio.but i have to save that audio in .wav format.Is it posiible.

how to do that.
help me plzz



Thanks,
Sunita
AnswerRe: help me Pin
Hamid_RT29-May-06 0:41
Hamid_RT29-May-06 0:41 
Questiondoubt in VC++ regarding Message Box Pin
Javagal Srinath28-May-06 23:13
Javagal Srinath28-May-06 23:13 
AnswerRe: doubt in VC++ regarding Message Box Pin
<color>Aljechin 28-May-06 23:25
<color>Aljechin 28-May-06 23:25 
GeneralRe: doubt in VC++ regarding Message Box Pin
ThatsAlok28-May-06 23:49
ThatsAlok28-May-06 23:49 
GeneralRe: doubt in VC++ regarding Message Box Pin
Eytukan29-May-06 1:51
Eytukan29-May-06 1:51 
GeneralRe: doubt in VC++ regarding Message Box Pin
ThatsAlok30-May-06 1:24
ThatsAlok30-May-06 1:24 
GeneralRe: doubt in VC++ regarding Message Box Pin
Eytukan30-May-06 1:34
Eytukan30-May-06 1:34 
GeneralRe: doubt in VC++ regarding Message Box Pin
ThatsAlok30-May-06 1:37
ThatsAlok30-May-06 1:37 
GeneralRe: doubt in VC++ regarding Message Box Pin
Eytukan30-May-06 1:42
Eytukan30-May-06 1:42 
GeneralRe: doubt in VC++ regarding Message Box Pin
ThatsAlok30-May-06 1:55
ThatsAlok30-May-06 1:55 
GeneralRe: doubt in VC++ regarding Message Box Pin
ThatsAlok30-May-06 2:02
ThatsAlok30-May-06 2:02 
GeneralRe: doubt in VC++ regarding Message Box Pin
ThatsAlok30-May-06 2:03
ThatsAlok30-May-06 2:03 
QuestionRe: doubt in VC++ regarding Message Box Pin
Eytukan30-May-06 2:10
Eytukan30-May-06 2:10 
AnswerRe: doubt in VC++ regarding Message Box Pin
ThatsAlok30-May-06 19:31
ThatsAlok30-May-06 19:31 
AnswerRe: doubt in VC++ regarding Message Box Pin
Sarath C28-May-06 23:57
Sarath C28-May-06 23:57 
GeneralRe: doubt in VC++ regarding Message Box Pin
ThatsAlok29-May-06 0:05
ThatsAlok29-May-06 0:05 
AnswerRe: doubt in VC++ regarding Message Box Pin
ThatsAlok29-May-06 0:00
ThatsAlok29-May-06 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.