Compaq iPAQ h3760 Datenblatt Seite 56

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 75
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 55
ENEE408G Fall 2003 (Update 09/23/2003)
Mobile Computing and Pocket PC Programming
55
#include <mmreg.h>
#include "PlotXY.h"
#include "filewav.h"
#include "spectrum.h"
// ## IMPORTANT! It has to be here otherwise GetOpenFileName doesn't work
TCHAR in_filename[255];
TCHAR out_filename[255];
// Å
/////////////////////////////////////////////////////////////////////////////
// CSpeechProcPPCView
IMPLEMENT_DYNCREATE(CSpeechProcPPCView, CView)
BEGIN_MESSAGE_MAP(CSpeechProcPPCView, CView)
//{{AFX_MSG_MAP(CSpeechProcPPCView)
ON_COMMAND(ID_FILE_OPEN, OnFileOpen)
ON_COMMAND(ID_SPECTRUM_FFT, OnSpectrumFft)
ON_COMMAND(ID_SPECTRUM_WAVEFORM, OnSpectrumWaveform)
ON_COMMAND(ID_FILE_SAVE, OnFileSave)
ON_COMMAND(ID_FILE_StartRecord, OnFILEStartRecord)
ON_COMMAND(ID_FILE_StopRecord, OnFILEStopRecord)
ON_COMMAND(ID_FILE_Play, OnFILEPlay)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSpeechProcPPCView construction/destruction
CSpeechProcPPCView::CSpeechProcPPCView()
{
// TODO: add construction code here
// Put your initial setting here -->
// for recoring buffer
MICbuffer.lpData = new char[1000000];
MICbuffer.dwBufferLength = 1000000;
MICbuffer.dwFlags = 0;
// for recording wave format
RecordWavFileFmt.wFormatTag = WAVE_FORMAT_PCM;
RecordWavFileFmt.cbSize = 0;
RecordWavFileFmt.nSamplesPerSec = 11025;
RecordWavFileFmt.wBitsPerSample = 8;
RecordWavFileFmt.nChannels = 1;
RecordWavFileFmt.nBlockAlign = RecordWavFileFmt.nChannels * RecordWavFileFmt.wBitsPerSample / 8;
RecordWavFileFmt.nAvgBytesPerSec = RecordWavFileFmt.nSamplesPerSec*RecordWavFileFmt.nBlockAlign;
m_bOneFileExist = FALSE;
show_spectrum_type=0;
FigureWidth=230;
FigureHeight=260;
//
Å
}
CSpeechProcPPCView::~CSpeechProcPPCView()
{
}
BOOL CSpeechProcPPCView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
Seitenansicht 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 74 75

Kommentare zu diesen Handbüchern

Keine Kommentare