Space Engineers
Public Member Functions | Public Attributes | Properties | List of all members
VRage.Audio.MySourceVoice Class Reference
Inheritance diagram for VRage.Audio.MySourceVoice:
VRage.Audio.IMySourceVoice

Public Member Functions

 MySourceVoice (XAudio2 device, WaveFormat sourceFormat)
 
 MySourceVoice (MySourceVoicePool owner, XAudio2 device, WaveFormat sourceFormat)
 
void Flush ()
 
void Start (bool skipIntro, bool skipToEnd=false)
 
void StartBuffered ()
 
void SubmitBuffer (byte[] buffer, int size)
 
void Stop (bool force=false)
 
void Pause ()
 
void Resume ()
 
void SetVolume (float volume)
 
void SetOutputVoices (VoiceSendDescriptor[] descriptors)
 
override string ToString ()
 
void Dispose ()
 
void Cleanup ()
 

Public Attributes

float distanceToListener = float.MaxValue
 
bool Silent = false
 

Properties

Action StoppedPlaying [get, set]
 
SourceVoice Voice [get]
 
MyCueId CueEnum [get]
 
bool IsPlaying [get]
 
bool IsPaused [get]
 
bool IsLoopable [get]
 
bool IsValid [get]
 
MySourceVoicePool Owner [get]
 
float FrequencyRatio [get, set]
 
float Volume [get]
 
float VolumeMultiplier [get, set]
 
bool IsBuffered [get]
 
- Properties inherited from VRage.Audio.IMySourceVoice
Action StoppedPlaying [get, set]
 
bool IsPlaying [get]
 
float FrequencyRatio [get, set]
 
bool IsLoopable [get]
 
MyCueId CueEnum [get]
 
bool IsBuffered [get]
 
bool IsPaused [get]
 
float Volume [get]
 
float VolumeMultiplier [get, set]
 

Detailed Description

Definition at line 20 of file MySourceVoice.cs.

Constructor & Destructor Documentation

VRage.Audio.MySourceVoice.MySourceVoice ( XAudio2  device,
WaveFormat  sourceFormat 
)
inline

Definition at line 86 of file MySourceVoice.cs.

VRage.Audio.MySourceVoice.MySourceVoice ( MySourceVoicePool  owner,
XAudio2  device,
WaveFormat  sourceFormat 
)
inline

Definition at line 96 of file MySourceVoice.cs.

Member Function Documentation

void VRage.Audio.MySourceVoice.Cleanup ( )
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 341 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.Dispose ( )
inline

Definition at line 281 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.Flush ( )
inline

Definition at line 120 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.Pause ( )
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 232 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.Resume ( )
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 238 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.SetOutputVoices ( VoiceSendDescriptor[]  descriptors)
inline

Definition at line 267 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.SetVolume ( float  volume)
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 252 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.Start ( bool  skipIntro,
bool  skipToEnd = false 
)
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 149 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.StartBuffered ( )
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 170 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.Stop ( bool  force = false)
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 218 of file MySourceVoice.cs.

void VRage.Audio.MySourceVoice.SubmitBuffer ( byte[]  buffer,
int  size 
)
inline

Implements VRage.Audio.IMySourceVoice.

Definition at line 183 of file MySourceVoice.cs.

override string VRage.Audio.MySourceVoice.ToString ( )
inline

Definition at line 276 of file MySourceVoice.cs.

Member Data Documentation

float VRage.Audio.MySourceVoice.distanceToListener = float.MaxValue

Definition at line 37 of file MySourceVoice.cs.

bool VRage.Audio.MySourceVoice.Silent = false

Definition at line 83 of file MySourceVoice.cs.

Property Documentation

MyCueId VRage.Audio.MySourceVoice.CueEnum
get

Definition at line 40 of file MySourceVoice.cs.

float VRage.Audio.MySourceVoice.FrequencyRatio
getset

Definition at line 47 of file MySourceVoice.cs.

bool VRage.Audio.MySourceVoice.IsBuffered
get

Definition at line 84 of file MySourceVoice.cs.

bool VRage.Audio.MySourceVoice.IsLoopable
get

Definition at line 43 of file MySourceVoice.cs.

bool VRage.Audio.MySourceVoice.IsPaused
get

Definition at line 42 of file MySourceVoice.cs.

bool VRage.Audio.MySourceVoice.IsPlaying
get

Definition at line 41 of file MySourceVoice.cs.

bool VRage.Audio.MySourceVoice.IsValid
get

Definition at line 44 of file MySourceVoice.cs.

MySourceVoicePool VRage.Audio.MySourceVoice.Owner
get

Definition at line 45 of file MySourceVoice.cs.

Action VRage.Audio.MySourceVoice.StoppedPlaying
getset

Definition at line 22 of file MySourceVoice.cs.

SourceVoice VRage.Audio.MySourceVoice.Voice
get

Definition at line 39 of file MySourceVoice.cs.

float VRage.Audio.MySourceVoice.Volume
get

Definition at line 72 of file MySourceVoice.cs.

float VRage.Audio.MySourceVoice.VolumeMultiplier
getset

Definition at line 75 of file MySourceVoice.cs.


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