API Documentation
Loading...
Searching...
No Matches
SoundManager.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/ApplicationOptions.h>
4#include <NDEVR/Buffer.h>
5#include <NDEVR/String.h>
6#include <NDEVR/TranslatedString.h>
7#ifdef PlaySound
8 #undef PlaySound//somewhere in a windows include?
9#endif
10namespace NDEVR
11{
23 {
24 public:
25 virtual bool textToSpeech(const TextToSpeechRequest& s) = 0;
26 virtual bool supportsTextToSpeech() const = 0;
27 virtual void enableTextToSpeech(bool enable) = 0;
29 virtual bool playSound(const String& s) = 0;
30 virtual bool textToSpeechEnabled() const = 0;
31 };
33 {
34 public:
35 static bool TextToSpeech(const TextToSpeechRequest& s);
36 static bool SupportsTextToSpeech();
37 static void EnableTextToSpeech(bool enable);
38 static Buffer<Sound> AvailableSounds();
39 static bool PlaySound(const String& s);
40 static void AddSoundFactory(SoundFactory* factory);
44 protected:
46 };
47}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
The default object to store data of any type that should persist through sessions of the application.
Definition Button.h:57
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition SoundManager.h:23
virtual bool supportsTextToSpeech() const =0
virtual Buffer< Sound > availableSounds()=0
virtual bool textToSpeechEnabled() const =0
virtual void enableTextToSpeech(bool enable)=0
virtual bool textToSpeech(const TextToSpeechRequest &s)=0
virtual bool playSound(const String &s)=0
Definition SoundManager.h:33
static Buffer< SoundFactory * > s_sound_factories
Definition SoundManager.h:45
static ApplicationOption< bool > enable_text_to_speech
Definition SoundManager.h:42
static ApplicationOption< bool > grab_volume_keys
Definition SoundManager.h:43
static ApplicationOption< bool > enable_sound
Definition SoundManager.h:41
Definition String.h:40
Definition TranslatedString.h:9
Definition ACIColor.h:37
Definition SoundManager.h:13
String resource
Definition SoundManager.h:15
TranslatedString title
Definition SoundManager.h:14
Definition SoundManager.h:18
String backup_sound
Definition SoundManager.h:20
String text_to_speech
Definition SoundManager.h:19