Guiliani  Version 2.5 revision 7293 (documentation build 13)
SndWrapWin.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef SNDWRAPWIN__H_
11#define SNDWRAPWIN__H_
12
13#include <windows.h>
14#include "SndWrap.h"
15
16# ifndef MMSYSTEM__H_
17 # define MMSYSTEM__H_
18 #include <mmsystem.h>
19#endif
20
22
30{
31public:
36 static void CreateInstance();
37
41 eC_Bool DeInit (void);
42
46 eC_Bool Init(void);
47
48 eC_UByte GetVolume ();
49 void LoadSnd (const eC_String &psPath, const SoundResource_t &eID, eC_UInt uiDeviceID = 0);
50 eC_Bool PauseSnd (const SoundResource_t &eID);
51 eC_Bool PlaySnd (const SoundResource_t &eID, eC_UInt Flags = PLAY_ASYNC);
52 eC_Bool ResumeSnd (const SoundResource_t &eID);
53 eC_Bool SetVolume (eC_UByte ubVolume);
54 eC_Bool StopSnd (const SoundResource_t &eID);
55 void UnloadSnd (const SoundResource_t &eID);
56
57protected:
60
63
64private:
65 // structure of internal sound-data
66 struct SoundData_t
67 {
68 eC_Bool bPaused;
69 WAVEHDR kSound;
70 HWAVEOUT kWaveOut;
71 };
72
76 CSndWrapWin(const CSndWrapWin& kSource);
77
81 CSndWrapWin& operator=(const CSndWrapWin& kSource);
82
85 eC_Bool SetNOFSounds(eC_UInt uiNOFSounds);
86
87 eC_TArray<SoundData_t*> m_kSoundData;
88};
89#endif
SoundResource_t
List of sound resource ids.
Definition: GUISoundResource.h:48
This is the Sound-Wrapper base class.
Definition: SndWrap.h:48
This is the Windows implementation of the sound wrapper.
Definition: SndWrapWin.h:30
eC_UByte GetVolume()
eC_Bool SetVolume(eC_UByte ubVolume)
CSndWrapWin(void)
Constructor.
eC_Bool PlaySnd(const SoundResource_t &eID, eC_UInt Flags=PLAY_ASYNC)
static void CreateInstance()
eC_Bool DeInit(void)
eC_Bool Init(void)
eC_Bool ResumeSnd(const SoundResource_t &eID)
eC_Bool StopSnd(const SoundResource_t &eID)
~CSndWrapWin(void)
Destructor.
void UnloadSnd(const SoundResource_t &eID)
eC_Bool PauseSnd(const SoundResource_t &eID)
void LoadSnd(const eC_String &psPath, const SoundResource_t &eID, eC_UInt uiDeviceID=0)