My Project
D:/source/c++/Programme/sally/sally/sallyAPI/PlaySound.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include "Control.h"
00031 #include "Thread.h"
00032 
00033 namespace SallyAPI
00034 {
00035         namespace Sound
00036         {
00045 
00046                 class DLL_API_SALLY CPlaySound :
00047                         public SallyAPI::System::CThread
00048                 {
00049                 private:
00050                         std::string                                     m_pSoundFile;
00051                         DWORD                                           m_dwFreq;
00052                         DWORD                                           m_dwDuration;
00053                         int                                                     m_iRepeat;
00054                         int                                                     m_iRepeatSleepMilliseconds;
00055                         SallyAPI::GUI::CControl*        m_pMainWindow;
00056 
00057                         virtual void    RunEx();
00058                 public:
00059                         CPlaySound(SallyAPI::GUI::CControl* mainWindow, const std::string& soundFile);
00060                         CPlaySound(SallyAPI::GUI::CControl* mainWindow, DWORD freq, DWORD duration, int repeat = 1, int repeatSleepMilliseconds = 100);
00061                         virtual ~CPlaySound();
00062                 };
00063         }
00064 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines