StreamedBufferSound Class
Namespace: Stride.Audio
Assembly: Stride.Audio.dll
Derived from StreamedBufferSound:
public sealed class StreamedBufferSound : SoundBase, IDisposable, IComponent, IReferencable, ICollectorHolder, IMediaExtractor, IMediaReader
|
Improve this Doc
View Source
Constructors
public StreamedBufferSound(AudioEngine engine, MediaSynchronizer scheduler, string mediaDataUrl, long startPosition, long length, bool spatialized)
Parameters
Type |
Name |
Description |
AudioEngine |
engine |
|
MediaSynchronizer |
scheduler |
|
System.String |
mediaDataUrl |
|
System.Int64 |
startPosition |
|
System.Int64 |
length |
|
System.Boolean |
spatialized |
|
|
Improve this Doc
View Source
Properties
public TimeSpan MediaCurrentTime { get; }
Property Value
Type |
Description |
System.TimeSpan |
|
public TimeSpan MediaDuration { get; }
Property Value
Type |
Description |
System.TimeSpan |
|
public MediaType MediaType { get; }
Property Value
SpeedFactor
public float SpeedFactor { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Methods
CreateInstance(AudioListener, Boolean, Single, HrtfEnvironment)
Create a new sound effect instance of the sound effect.
Each instance that can be played and localized independently from others.
public override SoundInstance CreateInstance(AudioListener listener = null, bool useHrtf = false, float directionalFactor = 0F, HrtfEnvironment environment = HrtfEnvironment.Small)
Parameters
Returns
Overrides
Exceptions
Type |
Condition |
System.ObjectDisposedException |
The sound has already been disposed
|
public bool ReachedEndOfMedia()
Returns
Type |
Description |
System.Boolean |
|
Seek(TimeSpan)
public void Seek(TimeSpan mediaTime)
Parameters
Type |
Name |
Description |
System.TimeSpan |
mediaTime |
|
SeekRequestCompleted()
public bool SeekRequestCompleted()
Returns
Type |
Description |
System.Boolean |
|
Extension Methods