Space Engineers
Classes | Public Member Functions | Public Attributes | Properties | List of all members
VRage.Audio.NativeSourceVoice Struct Reference

Native wrapper for source voice. It's not ref counted, no need to call Release or Dispose. More...

Classes

struct  BufferWma
 
struct  NativeAudioBuffer
 
struct  VoiceSendDescriptors
 

Public Member Functions

 NativeSourceVoice (IntPtr sourceVoicePtr)
 
void Discontinuity ()
 
void ExitLoop (int operationSet=0)
 
void FlushSourceBuffers ()
 
void SetFrequencyRatio (float ratio, int operationSet=0)
 
void Start (int operationSet=0)
 
void Stop (PlayFlags flags, int operationSet=0)
 
void SubmitSourceBuffer (AudioBuffer bufferRef, uint[] decodedXMWAPacketInfo)
 
void DestroyVoice ()
 
void DisableEffect (int effectIndex, int operationSet=0)
 
void EnableEffect (int effectIndex, int operationSet=0)
 
void GetChannelVolumes (int channels, float[] volumesRef)
 
GetEffectParameters< T > (int effectIndex)
 
void GetEffectParameters (int effectIndex, byte[] effectParameters)
 
void GetOutputFilterParameters (Voice destinationVoiceRef, out FilterParameters parametersRef)
 
void GetOutputMatrix (Voice destinationVoiceRef, int sourceChannels, int destinationChannels, float[] levelMatrixRef)
 
bool IsEffectEnabled (int effectIndex)
 
void SetChannelVolumes (int channels, float[] volumesRef, int operationSet=0)
 
void SetEffectChain (params EffectDescriptor[] effectDescriptors)
 
void SetEffectParameters (int effectIndex, byte[] effectParameter)
 
void SetEffectParameters< T > (int effectIndex, T effectParameter)
 
void SetEffectParameters (int effectIndex, byte[] effectParameter, int operationSet)
 
void SetEffectParameters< T > (int effectIndex, T effectParameter, int operationSet)
 
void SetFilterParameters (FilterParameters parametersRef, int operationSet=0)
 
void SetOutputFilterParameters (Voice destinationVoiceRef, FilterParameters parametersRef, int operationSet=0)
 
void SetOutputMatrix (int sourceChannels, int destinationChannels, float[] levelMatrixRef, int operationSet=0)
 
void SetOutputMatrix (Voice destinationVoiceRef, int sourceChannels, int destinationChannels, float[] levelMatrixRef, int operationSet=0)
 
void SetOutputVoices (VoiceSendDescriptor[] outputVoices)
 
void SetVolume (float volume, int operationSet=0)
 

Public Attributes

readonly IntPtr Pointer
 

Properties

float FrequencyRatio [get]
 
int SourceSampleRate [set]
 
VoiceState State [get]
 
FilterParameters FilterParameters [get]
 
VoiceDetails VoiceDetails [get]
 
float Volume [get]
 

Detailed Description

Native wrapper for source voice. It's not ref counted, no need to call Release or Dispose.

Definition at line 15 of file NativeSourceVoice.cs.

Constructor & Destructor Documentation

VRage.Audio.NativeSourceVoice.NativeSourceVoice ( IntPtr  sourceVoicePtr)
inline

Definition at line 55 of file NativeSourceVoice.cs.

Member Function Documentation

void VRage.Audio.NativeSourceVoice.DestroyVoice ( )
inline

Definition at line 491 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.DisableEffect ( int  effectIndex,
int  operationSet = 0 
)
inline

Definition at line 532 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.Discontinuity ( )
inline

Definition at line 168 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.EnableEffect ( int  effectIndex,
int  operationSet = 0 
)
inline

Definition at line 572 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.ExitLoop ( int  operationSet = 0)
inline

Definition at line 192 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.FlushSourceBuffers ( )
inline

Definition at line 236 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.GetChannelVolumes ( int  channels,
float[]  volumesRef 
)
inline

Definition at line 608 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.GetEffectParameters ( int  effectIndex,
byte[]  effectParameters 
)
inline

Definition at line 652 of file NativeSourceVoice.cs.

T VRage.Audio.NativeSourceVoice.GetEffectParameters< T > ( int  effectIndex)
inline
Type Constraints
T :struct 

Definition at line 633 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.GetOutputFilterParameters ( Voice  destinationVoiceRef,
out FilterParameters  parametersRef 
)
inline

Definition at line 682 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.GetOutputMatrix ( Voice  destinationVoiceRef,
int  sourceChannels,
int  destinationChannels,
float[]  levelMatrixRef 
)
inline

Definition at line 727 of file NativeSourceVoice.cs.

bool VRage.Audio.NativeSourceVoice.IsEffectEnabled ( int  effectIndex)
inline

Definition at line 750 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetChannelVolumes ( int  channels,
float[]  volumesRef,
int  operationSet = 0 
)
inline

Definition at line 791 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetEffectChain ( params EffectDescriptor[]  effectDescriptors)
inline

Definition at line 808 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetEffectParameters ( int  effectIndex,
byte[]  effectParameter 
)
inline

Definition at line 827 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetEffectParameters ( int  effectIndex,
byte[]  effectParameter,
int  operationSet 
)
inline

Definition at line 867 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetEffectParameters< T > ( int  effectIndex,
effectParameter 
)
inline
Type Constraints
T :struct 

Definition at line 845 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetEffectParameters< T > ( int  effectIndex,
effectParameter,
int  operationSet 
)
inline
Type Constraints
T :struct 

Definition at line 889 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetFilterParameters ( FilterParameters  parametersRef,
int  operationSet = 0 
)
inline

Definition at line 922 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetFrequencyRatio ( float  ratio,
int  operationSet = 0 
)
inline

Definition at line 283 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetOutputFilterParameters ( Voice  destinationVoiceRef,
FilterParameters  parametersRef,
int  operationSet = 0 
)
inline

Definition at line 960 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetOutputMatrix ( int  sourceChannels,
int  destinationChannels,
float[]  levelMatrixRef,
int  operationSet = 0 
)
inline

Definition at line 994 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetOutputMatrix ( Voice  destinationVoiceRef,
int  sourceChannels,
int  destinationChannels,
float[]  levelMatrixRef,
int  operationSet = 0 
)
inline

Definition at line 1057 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetOutputVoices ( VoiceSendDescriptor[]  outputVoices)
inline

Definition at line 1089 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SetVolume ( float  volume,
int  operationSet = 0 
)
inline

Definition at line 1153 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.Start ( int  operationSet = 0)
inline

Definition at line 304 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.Stop ( PlayFlags  flags,
int  operationSet = 0 
)
inline

Definition at line 351 of file NativeSourceVoice.cs.

void VRage.Audio.NativeSourceVoice.SubmitSourceBuffer ( AudioBuffer  bufferRef,
uint[]  decodedXMWAPacketInfo 
)
inline

Definition at line 373 of file NativeSourceVoice.cs.

Member Data Documentation

readonly IntPtr VRage.Audio.NativeSourceVoice.Pointer

Definition at line 53 of file NativeSourceVoice.cs.

Property Documentation

FilterParameters VRage.Audio.NativeSourceVoice.FilterParameters
get

Definition at line 436 of file NativeSourceVoice.cs.

float VRage.Audio.NativeSourceVoice.FrequencyRatio
get

Definition at line 75 of file NativeSourceVoice.cs.

int VRage.Audio.NativeSourceVoice.SourceSampleRate
set

Definition at line 111 of file NativeSourceVoice.cs.

VoiceState VRage.Audio.NativeSourceVoice.State
get

Definition at line 134 of file NativeSourceVoice.cs.

VoiceDetails VRage.Audio.NativeSourceVoice.VoiceDetails
get

Definition at line 443 of file NativeSourceVoice.cs.

float VRage.Audio.NativeSourceVoice.Volume
get

Definition at line 464 of file NativeSourceVoice.cs.


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