AudioStream
Base class for audio streams.
Base class for audio streams.
Base class for audio streams. Audio streams are used for sound effects and music playback, and support WAV (via AudioStreamWav), Ogg (via AudioStreamOggVorbis), and MP3 (via AudioStreamMP3) file formats.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
AudioStreamConstructor
public AudioStream();Methods16
CanBeSampledbool
public bool CanBeSampled();Returns if the current AudioStream can be used as a sample. Only static streams can be sampled.
boolGenerateSampleAudioSample
public AudioSample GenerateSample();Generates an AudioSample based on the current stream.
AudioSampleGetLengthdouble
public double GetLength();Override this method to customize the returned value of AudioStream.GetLength. Should return the length of this audio stream, in seconds.
doubleInstantiatePlaybackAudioStreamPlayback
public AudioStreamPlayback InstantiatePlayback();Override this method to customize the returned value of AudioStream.InstantiatePlayback. Should return a new AudioStreamPlayback created when the stream is played (such as by an AudioStreamPlayer).
AudioStreamPlaybackIsMetaStreambool
public bool IsMetaStream();Returns true if the stream is a collection of other streams, false otherwise.
boolIsMonophonicbool
public bool IsMonophonic();Override this method to customize the returned value of AudioStream.IsMonophonic. Should return true if this audio stream only supports one channel.
bool_GetBarBeatsint
public virtual int _GetBarBeats();Override this method to return the bar beats of this stream.
int_GetBeatCountint
public virtual int _GetBeatCount();Overridable method. Should return the total number of beats of this audio stream. Used by the engine to determine the position of every beat.
Ideally, the returned value should be based off the stream's sample rate (AudioStreamWav.MixRate, for example).
int_GetBpmdouble
public virtual double _GetBpm();Overridable method. Should return the tempo of this audio stream, in beats per minute (BPM). Used by the engine to determine the position of every beat.
Ideally, the returned value should be based off the stream's sample rate (AudioStreamWav.MixRate, for example).
double_GetLengthdouble
public virtual double _GetLength();Override this method to customize the returned value of AudioStream.GetLength. Should return the length of this audio stream, in seconds.
double_GetParameterListReckfell.Collections.Array<Reckfell.Collections.Dictionary>
public virtual Reckfell.Collections.Array<Reckfell.Collections.Dictionary> _GetParameterList();Return the controllable parameters of this stream. This array contains dictionaries with a property info description format (see ReckfellObject.GetPropertyList). Additionally, the default value for this parameter must be added tho each dictionary in "default_value" field.
Reckfell.Collections.Array<Reckfell.Collections.Dictionary>_GetStreamNamestring · Deprecated
public virtual string _GetStreamName();Override this method to customize the name assigned to this audio stream.
string_GetTagsReckfell.Collections.Dictionary
public virtual Reckfell.Collections.Dictionary _GetTags();Override this method to customize the tags for this audio stream. Should return a Reckfell.Collections.Dictionary of strings with the tag as the key and its content as the value.
Commonly used tags include title, artist, album, tracknumber, and date.
Reckfell.Collections.Dictionary_HasLoopbool
public virtual bool _HasLoop();Override this method to return true if this stream has a loop.
bool_InstantiatePlaybackAudioStreamPlayback
public virtual AudioStreamPlayback _InstantiatePlayback();Override this method to customize the returned value of AudioStream.InstantiatePlayback. Should return a new AudioStreamPlayback created when the stream is played (such as by an AudioStreamPlayer).
AudioStreamPlayback_IsMonophonicbool
public virtual bool _IsMonophonic();Override this method to customize the returned value of AudioStream.IsMonophonic. Should return true if this audio stream only supports one channel.
boolSignals and events1
ParameterListChangedEvent
public event Action ParameterListChanged;Signal to be emitted to notify when the parameter list changed.