Click here to Skip to main content
11,647,170 members (68,995 online)
Click here to Skip to main content
Add your own
alternative version

Morse code. Some examples of how to produce sounds.

, 3 Apr 2001 114.2K 2.2K 63
Several classes demonstrating how to fill audio buffer and how to produce sound using waveOut* API
// MorseParser.h: interface for the CMorseParser class.
// Part of "Morse" project. (C) Alexander Fedorov, 2000. lamer2000@hotmail.com
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MorsePARSER_H__3BAEFE30_D196_11D3_8419_A821536E3359__INCLUDED_)
#define AFX_MorsePARSER_H__3BAEFE30_D196_11D3_8419_A821536E3359__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "AlexfSnd.h"

class CMorseParser
{
protected:
	CAlexfAsyncPlay2 m_play;
	static UINT ThreadProc(LPVOID lpThreadParameter);
	char * pSafeBuffer;
	BOOL m_bThreadRunned;
	BOOL m_bStopThreadNow;
public:
	static const UINT WM_WORK_FINISHED;
	HWND m_hWnd;
	double m_dDelay;
	double m_dShort;
	double m_dLong;
	long m_lFreq;
	BOOL SafeAddSingleSound(long Freq, double Delay);
	BOOL AddParsedBufferToStreamAsync(CString str);
	CString Parse(CString str);
	BOOL AddTextToStream(CString str);
        CMorseParser();
        virtual ~CMorseParser();

};

#endif // !defined(AFX_MorsePARSER_H__3BAEFE30_D196_11D3_8419_A821536E3359__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Alexander Fedorov
Web Developer SEO
Russian Federation Russian Federation
AlexF's Blog in Russian
Owner Spy competition analysis
Rating Burner Rating of blogs

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150804.2 | Last Updated 4 Apr 2001
Article Copyright 2001 by Alexander Fedorov
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid