FlightGear next
MK_VIII::VoicePlayer Class Reference

#include <mk_viii.hxx>

Inherits FGVoicePlayer.

Public Member Functions

 VoicePlayer (MK_VIII *device)
 
 ~VoicePlayer ()
 
void init ()
 
- Public Member Functions inherited from FGVoicePlayer
 FGVoicePlayer (PropertiesHandler *properties_handler, std::string _dev_name)
 
virtual ~FGVoicePlayer ()
 
void init ()
 
void pause ()
 
void resume ()
 
bool is_playing ()
 
void play (Voice *_voice, unsigned int flags=0)
 
void stop (unsigned int flags=0)
 
void set_volume (float _volume)
 
void update ()
 
void bind (SGPropertyNode *node, const char *default_dir_prefix)
 

Public Attributes

struct { 
 
   Voice *   application_data_base_failed 
 
   Voice *   bank_angle 
 
   Voice *   bank_angle_bank_angle 
 
   Voice *   bank_angle_bank_angle_3 
 
   Voice *   bank_angle_inop 
 
   Voice *   bank_angle_pause_bank_angle 
 
   Voice *   bank_angle_pause_bank_angle_3 
 
   Voice *   callouts_inop 
 
   Voice *   configuration_type_invalid 
 
   Voice *   dont_sink 
 
   Voice *   dont_sink_pause_dont_sink 
 
   Voice *   five_hundred_above 
 
   Voice *   glideslope 
 
   Voice *   glideslope_inop 
 
   Voice *   gpws_inop 
 
   Voice *   hard_glideslope 
 
   Voice *   minimums 
 
   Voice *   minimums_100 
 
   Voice *   minimums_minimums 
 
   Voice *   retard 
 
   Voice *   pull_up 
 
   Voice *   sink_rate 
 
   Voice *   sink_rate_pause_sink_rate 
 
   Voice *   soft_glideslope 
 
   Voice *   terrain 
 
   Voice *   terrain_pause_terrain 
 
   Voice *   too_low_flaps 
 
   Voice *   too_low_gear 
 
   Voice *   too_low_terrain 
 
   Voice *   altitude_callouts [n_altitude_callouts] 
 
voices 
 
- Public Attributes inherited from FGVoicePlayer
struct { 
 
   float   volume 
 
conf 
 
Voicevoice
 
Voicenext_voice
 
bool paused
 
std::string dev_name
 
std::string dir_prefix
 

Additional Inherited Members

- Public Types inherited from FGVoicePlayer
enum  { PLAY_NOW = 1 << 0 , PLAY_LOOPED = 1 << 1 }
 
enum  { STOP_NOW = 1 << 0 }
 
- Protected Member Functions inherited from FGVoicePlayer
SGSoundSample * get_sample (const char *name)
 
void append (Voice *voice, Voice::Element *element)
 
void append (Voice *voice, const char *sample_name)
 
void append (Voice *voice, double silence)
 
void make_voice (Voice **voice)
 
template<class T1>
void make_voice (Voice **voice, T1 e1)
 
template<class T1, class T2>
void make_voice (Voice **voice, T1 e1, T2 e2)
 
template<class T1, class T2, class T3>
void make_voice (Voice **voice, T1 e1, T2 e2, T3 e3)
 
template<class T1, class T2, class T3, class T4>
void make_voice (Voice **voice, T1 e1, T2 e2, T3 e3, T4 e4)
 
- Protected Attributes inherited from FGVoicePlayer
SGSharedPtr< SGSampleGroup > _sgr
 
Speaker speaker
 
std::map< std::string, SGSharedPtr< SGSoundSample > > samples
 
std::vector< Voice * > _voices
 
bool looped
 
bool next_looped
 

Detailed Description

Definition at line 664 of file mk_viii.hxx.

Constructor & Destructor Documentation

◆ VoicePlayer()

MK_VIII::VoicePlayer::VoicePlayer ( MK_VIII * device)
inline

Definition at line 667 of file mk_viii.hxx.

◆ ~VoicePlayer()

MK_VIII::VoicePlayer::~VoicePlayer ( )
inline

Definition at line 671 of file mk_viii.hxx.

Member Function Documentation

◆ init()

void MK_VIII::VoicePlayer::init ( )

Definition at line 2152 of file mk_viii.cxx.

Member Data Documentation

◆ altitude_callouts

Voice* MK_VIII::VoicePlayer::altitude_callouts[n_altitude_callouts]

Definition at line 705 of file mk_viii.hxx.

◆ application_data_base_failed

Voice* MK_VIII::VoicePlayer::application_data_base_failed

Definition at line 676 of file mk_viii.hxx.

◆ bank_angle

Voice* MK_VIII::VoicePlayer::bank_angle

Definition at line 677 of file mk_viii.hxx.

◆ bank_angle_bank_angle

Voice* MK_VIII::VoicePlayer::bank_angle_bank_angle

Definition at line 678 of file mk_viii.hxx.

◆ bank_angle_bank_angle_3

Voice* MK_VIII::VoicePlayer::bank_angle_bank_angle_3

Definition at line 679 of file mk_viii.hxx.

◆ bank_angle_inop

Voice* MK_VIII::VoicePlayer::bank_angle_inop

Definition at line 680 of file mk_viii.hxx.

◆ bank_angle_pause_bank_angle

Voice* MK_VIII::VoicePlayer::bank_angle_pause_bank_angle

Definition at line 681 of file mk_viii.hxx.

◆ bank_angle_pause_bank_angle_3

Voice* MK_VIII::VoicePlayer::bank_angle_pause_bank_angle_3

Definition at line 682 of file mk_viii.hxx.

◆ callouts_inop

Voice* MK_VIII::VoicePlayer::callouts_inop

Definition at line 683 of file mk_viii.hxx.

◆ configuration_type_invalid

Voice* MK_VIII::VoicePlayer::configuration_type_invalid

Definition at line 684 of file mk_viii.hxx.

◆ dont_sink

Voice* MK_VIII::VoicePlayer::dont_sink

Definition at line 685 of file mk_viii.hxx.

◆ dont_sink_pause_dont_sink

Voice* MK_VIII::VoicePlayer::dont_sink_pause_dont_sink

Definition at line 686 of file mk_viii.hxx.

◆ five_hundred_above

Voice* MK_VIII::VoicePlayer::five_hundred_above

Definition at line 687 of file mk_viii.hxx.

◆ glideslope

Voice* MK_VIII::VoicePlayer::glideslope

Definition at line 688 of file mk_viii.hxx.

◆ glideslope_inop

Voice* MK_VIII::VoicePlayer::glideslope_inop

Definition at line 689 of file mk_viii.hxx.

◆ gpws_inop

Voice* MK_VIII::VoicePlayer::gpws_inop

Definition at line 690 of file mk_viii.hxx.

◆ hard_glideslope

Voice* MK_VIII::VoicePlayer::hard_glideslope

Definition at line 691 of file mk_viii.hxx.

◆ minimums

Voice* MK_VIII::VoicePlayer::minimums

Definition at line 692 of file mk_viii.hxx.

◆ minimums_100

Voice* MK_VIII::VoicePlayer::minimums_100

Definition at line 693 of file mk_viii.hxx.

◆ minimums_minimums

Voice* MK_VIII::VoicePlayer::minimums_minimums

Definition at line 694 of file mk_viii.hxx.

◆ pull_up

Voice* MK_VIII::VoicePlayer::pull_up

Definition at line 696 of file mk_viii.hxx.

◆ retard

Voice* MK_VIII::VoicePlayer::retard

Definition at line 695 of file mk_viii.hxx.

◆ sink_rate

Voice* MK_VIII::VoicePlayer::sink_rate

Definition at line 697 of file mk_viii.hxx.

◆ sink_rate_pause_sink_rate

Voice* MK_VIII::VoicePlayer::sink_rate_pause_sink_rate

Definition at line 698 of file mk_viii.hxx.

◆ soft_glideslope

Voice* MK_VIII::VoicePlayer::soft_glideslope

Definition at line 699 of file mk_viii.hxx.

◆ terrain

Voice* MK_VIII::VoicePlayer::terrain

Definition at line 700 of file mk_viii.hxx.

◆ terrain_pause_terrain

Voice* MK_VIII::VoicePlayer::terrain_pause_terrain

Definition at line 701 of file mk_viii.hxx.

◆ too_low_flaps

Voice* MK_VIII::VoicePlayer::too_low_flaps

Definition at line 702 of file mk_viii.hxx.

◆ too_low_gear

Voice* MK_VIII::VoicePlayer::too_low_gear

Definition at line 703 of file mk_viii.hxx.

◆ too_low_terrain

Voice* MK_VIII::VoicePlayer::too_low_terrain

Definition at line 704 of file mk_viii.hxx.

◆ [struct]

struct { ... } MK_VIII::VoicePlayer::voices

The documentation for this class was generated from the following files: