AudioLayer Class
Namespace: Stride.Audio
Assembly: Stride.Audio.dll
System.Object →
AudioLayer
Derived from AudioLayer:
Name |
Description |
Methods
|
|
BufferCreate(Int32) |
|
|
BufferDestroy(AudioLayer.Buffer) |
|
|
BufferFill(AudioLayer.Buffer, IntPtr, Int32, Int32, Boolean) |
|
|
Create(String, AudioLayer.DeviceFlags) |
|
|
Destroy(AudioLayer.Device) |
|
|
Init() |
|
|
ListenerCreate(AudioLayer.Device) |
|
|
ListenerDestroy(AudioLayer.Listener) |
|
|
ListenerDisable(AudioLayer.Listener) |
|
|
ListenerEnable(AudioLayer.Listener) |
|
|
ListenerPush3D(AudioLayer.Listener, ref Vector3, ref Vector3, ref Vector3, ref Vector3, ref Matrix) |
|
|
SetMasterVolume(AudioLayer.Device, Single) |
|
|
SourceCreate(AudioLayer.Listener, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Single, HrtfEnvironment) |
|
|
SourceDestroy(AudioLayer.Source) |
|
|
SourceFlushBuffers(AudioLayer.Source) |
|
|
SourceGetFreeBuffer(AudioLayer.Source) |
|
|
SourceGetPosition(AudioLayer.Source) |
|
|
SourceIsPlaying(AudioLayer.Source) |
|
|
SourcePause(AudioLayer.Source) |
|
|
SourcePlay(AudioLayer.Source) |
|
|
SourcePush3D(AudioLayer.Source, ref Vector3, ref Vector3, ref Vector3, ref Vector3, ref Matrix) |
|
|
SourceQueueBuffer(AudioLayer.Source, AudioLayer.Buffer, IntPtr, Int32, AudioLayer.BufferType) |
|
|
SourceSetBuffer(AudioLayer.Source, AudioLayer.Buffer) |
|
|
SourceSetGain(AudioLayer.Source, Single) |
|
|
SourceSetLooping(AudioLayer.Source, Boolean) |
|
|
SourceSetPan(AudioLayer.Source, Single) |
|
|
SourceSetPitch(AudioLayer.Source, Single) |
|
|
SourceSetRange(AudioLayer.Source, Double, Double) |
|
|
SourceStop(AudioLayer.Source) |
|
|
Update(AudioLayer.Device) |
|
|
Improve this Doc
View Source
Methods
BufferCreate(Int32)
public static extern AudioLayer.Buffer BufferCreate(int maxBufferSizeBytes)
Parameters
Type |
Name |
Description |
System.Int32 |
maxBufferSizeBytes |
|
Returns
BufferDestroy(AudioLayer.Buffer)
public static extern void BufferDestroy(AudioLayer.Buffer buffer)
Parameters
BufferFill(AudioLayer.Buffer, IntPtr, Int32, Int32, Boolean)
public static extern void BufferFill(AudioLayer.Buffer buffer, IntPtr pcm, int bufferSize, int sampleRate, bool mono)
Parameters
Type |
Name |
Description |
AudioLayer.Buffer |
buffer |
|
System.IntPtr |
pcm |
|
System.Int32 |
bufferSize |
|
System.Int32 |
sampleRate |
|
System.Boolean |
mono |
|
Create(String, AudioLayer.DeviceFlags)
public static extern AudioLayer.Device Create(string deviceName, AudioLayer.DeviceFlags flags)
Parameters
Returns
Destroy(AudioLayer.Device)
public static extern void Destroy(AudioLayer.Device device)
Parameters
Init()
public static extern bool Init()
Returns
Type |
Description |
System.Boolean |
|
ListenerCreate(AudioLayer.Device)
public static extern AudioLayer.Listener ListenerCreate(AudioLayer.Device device)
Parameters
Returns
ListenerDestroy(AudioLayer.Listener)
public static extern void ListenerDestroy(AudioLayer.Listener listener)
Parameters
ListenerDisable(AudioLayer.Listener)
public static extern void ListenerDisable(AudioLayer.Listener listener)
Parameters
ListenerEnable(AudioLayer.Listener)
public static extern bool ListenerEnable(AudioLayer.Listener listener)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ListenerPush3D(AudioLayer.Listener, ref Vector3, ref Vector3, ref Vector3, ref Vector3, ref Matrix)
public static extern void ListenerPush3D(AudioLayer.Listener listener, ref Vector3 pos, ref Vector3 forward, ref Vector3 up, ref Vector3 vel, ref Matrix worldTransform)
Parameters
SetMasterVolume(AudioLayer.Device, Single)
public static extern void SetMasterVolume(AudioLayer.Device device, float volume)
Parameters
SourceCreate(AudioLayer.Listener, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Single, HrtfEnvironment)
public static extern AudioLayer.Source SourceCreate(AudioLayer.Listener listener, int sampleRate, int maxNumberOfBuffers, bool mono, bool spatialized, bool streamed, bool hrtf, float hrtfDirectionFactor, HrtfEnvironment environment)
Parameters
Type |
Name |
Description |
AudioLayer.Listener |
listener |
|
System.Int32 |
sampleRate |
|
System.Int32 |
maxNumberOfBuffers |
|
System.Boolean |
mono |
|
System.Boolean |
spatialized |
|
System.Boolean |
streamed |
|
System.Boolean |
hrtf |
|
System.Single |
hrtfDirectionFactor |
|
HrtfEnvironment |
environment |
|
Returns
SourceDestroy(AudioLayer.Source)
public static extern void SourceDestroy(AudioLayer.Source source)
Parameters
SourceFlushBuffers(AudioLayer.Source)
public static extern void SourceFlushBuffers(AudioLayer.Source source)
Parameters
SourceGetFreeBuffer(AudioLayer.Source)
public static extern AudioLayer.Buffer SourceGetFreeBuffer(AudioLayer.Source source)
Parameters
Returns
SourceGetPosition(AudioLayer.Source)
public static extern double SourceGetPosition(AudioLayer.Source source)
Parameters
Returns
Type |
Description |
System.Double |
|
SourceIsPlaying(AudioLayer.Source)
public static extern bool SourceIsPlaying(AudioLayer.Source source)
Parameters
Returns
Type |
Description |
System.Boolean |
|
SourcePause(AudioLayer.Source)
public static extern void SourcePause(AudioLayer.Source source)
Parameters
SourcePlay(AudioLayer.Source)
public static extern void SourcePlay(AudioLayer.Source source)
Parameters
SourcePush3D(AudioLayer.Source, ref Vector3, ref Vector3, ref Vector3, ref Vector3, ref Matrix)
public static extern void SourcePush3D(AudioLayer.Source source, ref Vector3 pos, ref Vector3 forward, ref Vector3 up, ref Vector3 vel, ref Matrix worldTransform)
Parameters
SourceQueueBuffer(AudioLayer.Source, AudioLayer.Buffer, IntPtr, Int32, AudioLayer.BufferType)
public static extern void SourceQueueBuffer(AudioLayer.Source source, AudioLayer.Buffer buffer, IntPtr pcm, int bufferSize, AudioLayer.BufferType streamType)
Parameters
SourceSetBuffer(AudioLayer.Source, AudioLayer.Buffer)
public static extern void SourceSetBuffer(AudioLayer.Source source, AudioLayer.Buffer buffer)
Parameters
SourceSetGain(AudioLayer.Source, Single)
public static extern void SourceSetGain(AudioLayer.Source source, float gain)
Parameters
SourceSetLooping(AudioLayer.Source, Boolean)
public static extern void SourceSetLooping(AudioLayer.Source source, bool looped)
Parameters
SourceSetPan(AudioLayer.Source, Single)
public static extern void SourceSetPan(AudioLayer.Source source, float pan)
Parameters
SourceSetPitch(AudioLayer.Source, Single)
public static extern void SourceSetPitch(AudioLayer.Source source, float pitch)
Parameters
SourceSetRange(AudioLayer.Source, Double, Double)
public static extern void SourceSetRange(AudioLayer.Source source, double startTime, double stopTime)
Parameters
Type |
Name |
Description |
AudioLayer.Source |
source |
|
System.Double |
startTime |
|
System.Double |
stopTime |
|
SourceStop(AudioLayer.Source)
public static extern void SourceStop(AudioLayer.Source source)
Parameters
Update(AudioLayer.Device)
public static extern void Update(AudioLayer.Device device)
Parameters
Extension Methods