Old fashion design for PC-104
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.

48 lines
1.1 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgWaveFile.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgWaveFile.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__WAVE__FILE__H__INCLUDED__
  15. #define __LG__WAVE__FILE__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. class CLgWaveFile
  20. {
  21. public:
  22. CLgWaveFile();
  23. virtual ~CLgWaveFile();
  24. public:
  25. BOOL Load( LPCTSTR pFileName );
  26. void Destroy();
  27. public:
  28. BOOL ConvertToPCM();
  29. public:
  30. LPWAVEFORMATEX GetFormat() { return m_pWaveFormatEx; }
  31. LPSTR GetData() { return m_pWaveData; }
  32. INT GetDataLength() { return m_nWaveDataLength; }
  33. private:
  34. static void CALLBACK StreamConvertCallback( HACMSTREAM has, UINT uMsg, DWORD dwInstance, LPARAM lParam1, LPARAM lParam2 );
  35. private:
  36. LPWAVEFORMATEX m_pWaveFormatEx;
  37. LPSTR m_pWaveData;
  38. INT m_nWaveDataLength;
  39. };
  40. #endif