:) #include #include #include #pragma comment(lib, "winmm.lib") int main(int argc, _TCHAR*argv[]) { DWORD datasize = 48000; HWAVEIN mh; WAVEFORMATEX wf; wf.wFormatTag=WAVE_FORMAT_PCM; wf.nChannels=1; wf.nSamplesPerSec=8000; wf.nAvgBytesPerSec=8000; wf.nBlockAlign=1; wf.wBitsPerSample=8; wf.cbSize=0; int r;// = ; cout << "poo1"; int k = ::waveInOpen(&mh,WAVE_MAPPER,&wf,NULL,0L,CALLBACK_WINDOW); cout << k; cout << "poo2"; if (k == MMSYSERR_NOERROR) cout << "success"; else cout << "fail"; cout << "poo7"; cout << "poo4"; //waveInAddBuffer int i ; r= waveInGetNumDevs(); cout << "poo5"; cout << r ; cin >> i ; //cout << " " << endl; return 0; } Try out mythili
J
janisha
@janisha
Posts
-
strange problem (audio) -
Checkbox / How do I get the width/height of it?Create a variable for the check box. And call GetWindowRect :omg: Mythili
-
how to load bitmap on picture ctrlU can directly load on picture control by changing the control properties Right click on picture control and change type to bitmap and select bitmap id in Image. :cool:
-
How to implement List View ControlHow to implement List View Control in MFC :-O Myhthili
-
Can we declare A Constructor as Private?Can we declare A Constructor as Private? can any one explain this.;)
-
Sir Can any one help meSir Can any one help me in knowing which message is fired when shut down dialog is up. thank u.:laugh: