 |
|
 |
Hi Saneesh,
I am not a programmer (unfortunately). I am working on project where I need 2 SEPARATE self contained but simple EXEs.
1. First EXE should preset Microphone as the audio input device
2. Second EXE should preset WaveOut Mix (Stereo Mix) as the audio input device.
Of course, both need to work on Windows NT/2000/XP/Vista/Windows7.
I am wondering if you can help me..? I am willing to pay for your time.
Please contact me at : rsekar_2005@yahoo.com
Thanks
Sekar
|
|
|
|
 |
|
 |
Get around 20 errors when trying to compile with Visual Studio 2010 (SP1). Some help when #pragma comment (lib, "winmm.lib) reduces errors to 13. Remaining errors relate to: 'CCM_SETWINDOWTHEME', 'PSCROLLBARINFO' : undeclared identifier and some others. Does anyone have updated correct code for this app ?
|
|
|
|
 |
|
 |
Can you try to copy the definition of those from older header file (or you can get it from internet) and try?
Saneesh
|
|
|
|
 |
|
 |
I had the sampe problem. It wouldn't compile under Visual Stdio 2010. To fix it you need to edit stdafx.h to look like the following: (Just replace the entire contents of stdafx.h)
*******************
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0501 // Change this to the appropriate value to target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0500 // Change this to the appropriate value to target IE 5.0 or later.
#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
// turns off MFC's hiding of some common and often safely ignored warning messages
#define _AFX_ALL_WARNINGS
#include // MFC core and standard components
#include // MFC extensions
#include // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
|
|
|
|
 |
|
 |
Thanks..
I cant believe that people are still reading my old posts !!!
Saneesh
|
|
|
|
 |
|
 |
I searched in net but not possible to find exact code required for my project.So i kindly request you to send codes or links related to that code.
|
|
|
|
 |
|
 |
I need to use pcm technique.And also i need those samples to be stored in a seperate text file and display wave form in real time.Can it possible to send souce code for it?
|
|
|
|
 |
|
 |
That is too much work for me now. You should be able to find the sample code in the internet.
Saneesh
|
|
|
|
 |
|
 |
Dear Saneesh,
Your article is very good!
Now I'm able to record sounds!
Anyway, I need get PCM flow and analyze samples on real-time, too.
Do you know if it's possible?
I've already googled a lot but I've not found it...
Any idea? Any link?
Thank
peppe
|
|
|
|
 |
|
 |
is it possible to display real time wave form? if so then where to put display function? can u help for it?
|
|
|
|
 |
|
 |
Saneesh,
I tried your recording software. It is simple and great.
Can you please contact me at : rsekar_2005@yahoo.com
Thanks
|
|
|
|
 |
|
|
 |
|
 |
There are several articles available on how to do it. Which way you want? If you want it by frequency, you have to convert it into frequency domain using FFT and then display it. Simple way would be to just the amplitude of the signal.
Saneesh
|
|
|
|
 |
|
|
 |
|
 |
Hello
i am working on serial port communication and i have c code for file transfer from one pc to another pc. Now i want to record the audio file on another pc. But my problem is MMIOxxx functions use HMMIO handle while serial port uses different HANDLE type. so how can i solve this problem?
|
|
|
|
 |
|
 |
I dont think you can use it like that. Serial port handle to MMIO..
Saneesh
|
|
|
|
 |
|
 |
The coding is shown below the timer function is not working.
Hope someone can give some ideas why it is not working.
void CFYPv1Dlg::OnCrecord()
{
// TODO: Add your control notification handler code here
WAVEHDR Header;
SetTimer(ID_CLOCK_TIMER,1000,NULL);
if(waveInOpen(WaveIn,WAVE_MAPPER,Format,(DWORD)m_hWnd,0,CALLBACK_WINDOW))
{ AfxMessageBox("Error opening input device!");
return;
}
Header.dwBufferLength=m_TotalBytes;
Header.lpData=(char *)Sample;
Header.dwFlags=0;
Header.dwLoops=0;
if(waveInPrepareHeader(*WaveIn,&Header,sizeof(WAVEHDR)))
{ AfxMessageBox("Error preparing header!");
return;
}
if(waveInAddBuffer(*WaveIn,&Header,sizeof(WAVEHDR)))
{ AfxMessageBox("Error adding buffer!");
return;
}
if(waveInStart(*WaveIn))
{ AfxMessageBox("Error start recording!");
return;
}
//Assigned time recording (m_Second)
do{} while (waveInUnprepareHeader(*WaveIn, &Header, sizeof
(WAVEHDR))==WAVERR_STILLPLAYING);
void CFYPv1Dlg::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
//Display the remaining recording time every secod
m_sTime.Format("%ds",m_iCount);
UpdateData(0);
m_iCount--;
CDialog::OnTimer(nIDEvent);
}
|
|
|
|
 |
|
 |
So if u put a break point, is it coming there?
Saneesh
|
|
|
|
 |
|
 |
hi all,
i want to modify the program to sort of loop on start device() and stop device() when i press start so that i can continuously obtain small segmented wav files. how do i do that? i tried putting a for loop inside start_recording() but i cant seem to get it to function properly. plz help me..thx
|
|
|
|
 |
|
 |
Hi, I´m programming a sound recorder and I have a lot of problems with waveinaddbuffer. It returns 33, which is WAVERR_STILLPLAYING. When this happens, I have a deadlock.
I´ve tried to simplificate waveinproc(...), and it only contains the activation for an event, but the deadlock persists.
Could anybody help me?
Many thanks.
P.D: Sorry for my english
|
|
|
|
 |
|
 |
Which OS are you using? Did you modified the code or the using the same code as in CP?
Saneesh
|
|
|
|
 |
|
 |
Hi, thank you for answer.
I´m doing my own program (in VB) and I´m working on Windows XP.
One question, is it necessary to Unprepare and prepare the buffer before calling waveinaddbuffer?
Many thanks
|
|
|
|
 |
|
 |
Is it Possible to record audio/speaker Output and produce an audio file?
Thanks in advance
modified on Saturday, June 13, 2009 3:19 AM
|
|
|
|
 |
|
 |
Want to record online music??
You can try to open the mixer device instead of mic and try it.
Saneesh
|
|
|
|
 |
|
 |
Noticed you are calling waveInAddBuffer directly from waveInProc. I thought MSDN docs explicitly forbid that, or am I missing something ?
Thanks.
|
|
|
|
 |