You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 27/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgWavePlayer.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgWavePlayer.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__WAVE__PLAYER__H__INCLUDED__
|
|
#define __LG__WAVE__PLAYER__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "LgWaveFile.h"
|
|
#include "..\Templ.h"
|
|
|
|
class CLgWavePlayer
|
|
{
|
|
public:
|
|
CLgWavePlayer();
|
|
virtual ~CLgWavePlayer();
|
|
|
|
public:
|
|
BOOL PlayWave( CLgWaveFile *pWaveFile, DWORD dwWaveDeviceID );
|
|
BOOL ResetWave();
|
|
|
|
protected:
|
|
virtual void OnWaveOpen();
|
|
virtual void OnWaveClose();
|
|
virtual void OnWaveDone( BOOL bReset );
|
|
|
|
private:
|
|
static void CALLBACK WaveOutProc( HWAVEOUT hwo, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2 );
|
|
|
|
private:
|
|
HWAVEOUT m_hWaveOut;
|
|
BOOL m_bReset;
|
|
WAVEHDR m_WaveHdr;
|
|
CLgCriticalSection m_Lock;
|
|
};
|
|
|
|
#endif
|