⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zp_dspview.cpp

📁 音频信号降采样程序 支持48k->8k 24k->8k 8k->1k 的降采样.实现方法,先做低通滤波,再做采样点抽取.低通滤波起使用67点FIR,系数由matlab使用窗函数法生成
💻 CPP
字号:
// ZP_DspView.cpp : implementation of the C_ZP_DspView class
//

#include "stdafx.h"
#include "ZP_Dsp.h"

#include "ZP_DspDoc.h"
#include "ZP_DspView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// C_ZP_DspView

IMPLEMENT_DYNCREATE(C_ZP_DspView, CView)

BEGIN_MESSAGE_MAP(C_ZP_DspView, CView)
	//{{AFX_MSG_MAP(C_ZP_DspView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// C_ZP_DspView construction/destruction

C_ZP_DspView::C_ZP_DspView()
{
	// TODO: add construction code here

}

C_ZP_DspView::~C_ZP_DspView()
{
}

BOOL C_ZP_DspView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// C_ZP_DspView drawing

void C_ZP_DspView::OnDraw(CDC* pDC)
{
	C_ZP_DspDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// C_ZP_DspView printing

BOOL C_ZP_DspView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void C_ZP_DspView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void C_ZP_DspView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// C_ZP_DspView diagnostics

#ifdef _DEBUG
void C_ZP_DspView::AssertValid() const
{
	CView::AssertValid();
}

void C_ZP_DspView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

C_ZP_DspDoc* C_ZP_DspView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(C_ZP_DspDoc)));
	return (C_ZP_DspDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// C_ZP_DspView message handlers

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -