Guiliani  Version 2.5 revision 7293 (documentation build 13)
SndWrapNull.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 SNDWRAPNULL__H_
11#define SNDWRAPNULL__H_
12
13#include "SndWrap.h"
14#include "GUITrace.h"
15
17
22 public CSndWrap
23{
24public:
29 inline static void CreateInstance()
30 {
31 if (!CGUIComponentManager::GetInstance().HasSndWrap())
33 }
34
35 inline eC_UByte GetVolume () {return 0;}
36 inline eC_Bool PauseSnd (const SoundResource_t &eID) {return false;}
37 inline eC_Bool PlaySnd (const SoundResource_t &eID, eC_UInt uiFlags = PLAY_ASYNC) {return false;}
38 inline eC_Bool ResumeSnd (const SoundResource_t &eID) {return false;}
39 inline eC_Bool SetVolume (eC_UByte ubVolume) {return false;}
40 inline eC_Bool StopSnd (const SoundResource_t &eID) {return false;}
41 inline eC_Bool SetNOFSounds(eC_UInt uiNOFSounds) {m_uiNOFSounds=uiNOFSounds; return true;}
42 inline void LoadSnd (const eC_String& kPath, const SoundResource_t &eID, eC_UInt uiDeviceID = 0) {}
43 inline void UnloadSnd (const SoundResource_t &eID) {}
44
45private:
47 CSndWrapNull (void)
48 {
49 GUILOG(GUI_TRACE_WARNING, "------------------------\n");
50 GUILOG(GUI_TRACE_WARNING, "| SndWrapNull chosen |\n");
51 GUILOG(GUI_TRACE_WARNING, "------------------------\n");
52 }
53
56 CSndWrapNull(const CSndWrapNull& kSource);
57
60 CSndWrapNull& operator=(const CSndWrapNull& kSource);
61};
62#endif
SoundResource_t
List of sound resource ids.
Definition: GUISoundResource.h:48
static CGUIComponentManager & GetInstance()
void SetSndWrap(CSndWrap *pkSndWrap)
This is the Sound-Wrapper base class.
Definition: SndWrap.h:48
eC_UInt m_uiNOFSounds
total number of sound-objects.
Definition: SndWrap.h:156
This is the Null Sound-Wrapper class.
Definition: SndWrapNull.h:23
void LoadSnd(const eC_String &kPath, const SoundResource_t &eID, eC_UInt uiDeviceID=0)
Definition: SndWrapNull.h:42
eC_Bool StopSnd(const SoundResource_t &eID)
Definition: SndWrapNull.h:40
void UnloadSnd(const SoundResource_t &eID)
Definition: SndWrapNull.h:43
eC_Bool PauseSnd(const SoundResource_t &eID)
Definition: SndWrapNull.h:36
eC_Bool SetNOFSounds(eC_UInt uiNOFSounds)
Definition: SndWrapNull.h:41
eC_Bool ResumeSnd(const SoundResource_t &eID)
Definition: SndWrapNull.h:38
eC_Bool PlaySnd(const SoundResource_t &eID, eC_UInt uiFlags=2)
Definition: SndWrapNull.h:37
eC_UByte GetVolume()
Definition: SndWrapNull.h:35
eC_Bool SetVolume(eC_UByte ubVolume)
Definition: SndWrapNull.h:39
static void CreateInstance()
Definition: SndWrapNull.h:29