資源簡介
C++PCM音頻格式錄音(雙緩存MFC版本),詳情見博客,有問題到博客留言,這邊不會推送,很少會看到
http://blog.csdn.net/weixinhum/article/details/76158998

代碼片段和文件信息
//?PCMCollectProgramDouBuf.cpp?:?定義應用程序的類行為。
//
#include?“stdafx.h“
#include?“PCMCollectProgramDouBuf.h“
#include?“PCMCollectProgramDouBufDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CPCMCollectProgramDouBufApp
BEGIN_MESSAGE_MAP(CPCMCollectProgramDouBufApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CPCMCollectProgramDouBufApp?構造
CPCMCollectProgramDouBufApp::CPCMCollectProgramDouBufApp()
{
//?支持重新啟動管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;
//?TODO:?在此處添加構造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個?CPCMCollectProgramDouBufApp?對象
CPCMCollectProgramDouBufApp?theApp;
//?CPCMCollectProgramDouBufApp?初始化
BOOL?CPCMCollectProgramDouBufApp::InitInstance()
{
//?如果一個運行在?Windows?XP?上的應用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。??否則,將無法創建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設置為包括所有要在應用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
//?創建?shell?管理器,以防對話框包含
//?任何?shell?樹視圖控件或?shell?列表視圖控件。
CShellManager?*pShellManager?=?new?CShellManager;
//?激活“Windows?Native”視覺管理器,以便在?MFC?控件中啟用主題
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
//?標準初始化
//?如果未使用這些功能并希望減小
//?最終可執行文件的大小,則應移除下列
//?不需要的特定初始化例程
//?更改用于存儲設置的注冊表項
//?TODO:?應適當修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應用程序向導生成的本地應用程序“));
CPCMCollectProgramDouBufDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?在此放置處理何時用
//??“確定”來關閉對話框的代碼
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?在此放置處理何時用
//??“取消”來關閉對話框的代碼
}
else?if?(nResponse?==?-1)
{
TRACE(traceAppMsg?0?“警告:?對話框創建失敗,應用程序將意外終止。\n“);
TRACE(traceAppMsg?0?“警告:?如果您在對話框上使用?MFC?控件,則無法?#define?_AFX_NO_MFC_CONTROLS_IN_DIALOGS。\n“);
}
//?刪除上面創建的?shell?管理器。
if?(pShellManager?!=?NULL)
{
delete?pShellManager;
}
#ifndef?_AFXDLL
ControlBarCleanUp();
#endif
//?由于對話框已關閉,所以將返回?FALSE?以便退出應用程序,
//??而不是啟動應用程序的消息泵。
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-26?18:21??PCMCollectProgramDouBuf\
?????目錄???????????0??2017-07-25?22:26??PCMCollectProgramDouBuf\.vs\
?????目錄???????????0??2017-07-25?22:26??PCMCollectProgramDouBuf\.vs\PCMCollectProgramDouBuf\
?????目錄???????????0??2017-07-25?22:26??PCMCollectProgramDouBuf\.vs\PCMCollectProgramDouBuf\v14\
?????文件???????35840??2017-07-26?18:21??PCMCollectProgramDouBuf\.vs\PCMCollectProgramDouBuf\v14\.suo
?????目錄???????????0??2017-07-26?18:21??PCMCollectProgramDouBuf\Debug\
?????目錄???????????0??2017-07-26?18:21??PCMCollectProgramDouBuf\ipch\
?????目錄???????????0??2017-07-26?18:21??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\
?????文件????????1351??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf.sln
?????目錄???????????0??2017-07-26?18:21??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\Debug\
?????文件??????109224??2017-07-26?18:17??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBuf.aps
?????文件????????2641??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBuf.cpp
?????文件?????????545??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBuf.h
?????文件???????11070??2017-07-26?18:17??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBuf.rc
?????文件???????10628??2017-07-25?23:52??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBuf.vcxproj
?????文件????????2167??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBuf.vcxproj.filters
?????文件????????6471??2017-07-26?18:21??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBufDlg.cpp
?????文件????????1238??2017-07-26?17:55??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\PCMCollectProgramDouBufDlg.h
?????文件????????4165??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\ReadMe.txt
?????目錄???????????0??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\res\
?????文件????????1546??2017-07-25?23:39??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\resource.h
?????文件???????67777??2015-09-20?17:20??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\res\PCMCollectProgramDouBuf.ico
?????文件?????????702??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\res\PCMCollectProgramDouBuf.rc2
?????文件?????????156??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\stdafx.cpp
?????文件????????1578??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\stdafx.h
?????文件?????????240??2017-07-25?22:26??PCMCollectProgramDouBuf\PCMCollectProgramDouBuf\targetver.h
- 上一篇:C++播放音頻
- 下一篇:c++服務器 拆包粘包 過程
評論
共有 條評論