StreamedBufferSoundSource Class
Namespace: Stride.Audio
Assembly: Stride.Audio.dll
Derived from StreamedBufferSoundSource:
public class StreamedBufferSoundSource : DynamicSoundSource, IDisposable, IMediaExtractor, IMediaReader
|
Improve this Doc
View Source
Constructors
public StreamedBufferSoundSource(SoundInstanceStreamedBuffer instance, MediaSynchronizer synchronizer, string mediaDataUrl, long startPosition, long length)
Parameters
|
Improve this Doc
View Source
Properties
CanFill
protected override bool CanFill { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Channels
public int Channels { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsDisposed
public bool IsDisposed { get; }
Property Value
Type |
Description |
System.Boolean |
|
MaxNumberOfBuffers
public override int MaxNumberOfBuffers { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
public TimeSpan MediaCurrentTime { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
public TimeSpan MediaDuration { get; }
Property Value
Type |
Description |
System.TimeSpan |
|
public MediaType MediaType { get; }
Property Value
PlayRange
Gets or sets the region of time to play from the audio clip.
public override PlayRange PlayRange { get; set; }
Property Value
Overrides
SampleRate
public int SampleRate { get; }
Property Value
Type |
Description |
System.Int32 |
|
SpeedFactor
public float SpeedFactor { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Methods
DisposeInternal()
protected override void DisposeInternal()
Overrides
ExtractAndFillData()
protected override void ExtractAndFillData()
Overrides
InitializeInternal()
protected override void InitializeInternal()
Overrides
PrepareInternal()
protected override void PrepareInternal()
Overrides
public bool ReachedEndOfMedia()
Returns
Type |
Description |
System.Boolean |
|
Seek(TimeSpan)
public void Seek(TimeSpan mediaTime)
Parameters
Type |
Name |
Description |
System.TimeSpan |
mediaTime |
|
SeekInternal()
Should be called from working thread only (or add proper locks)
protected override void SeekInternal()
Overrides
SeekRequestCompleted()
public bool SeekRequestCompleted()
Returns
Type |
Description |
System.Boolean |
|
SetLooped(Boolean)
Sets if the stream should be played in loop
public override void SetLooped(bool loop)
Parameters
Type |
Name |
Description |
System.Boolean |
loop |
if looped or not
|
Overrides
UpdateInternal()
protected override void UpdateInternal()
Overrides
Extension Methods