reckfellENGINE

AudioStream

Base class for audio streams.

On this page
class AudioStreamReckfellSharpInherits Resource

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
# AudioStream
C#
public AudioStream();

Methods16

CanBeSampledbool
# CanBeSampled
C#
public bool CanBeSampled();

Returns if the current AudioStream can be used as a sample. Only static streams can be sampled.

Returns bool
GenerateSampleAudioSample
# GenerateSample
C#
public AudioSample GenerateSample();

Generates an AudioSample based on the current stream.

Returns AudioSample
GetLengthdouble
# GetLength
C#
public double GetLength();

Override this method to customize the returned value of AudioStream.GetLength. Should return the length of this audio stream, in seconds.

Returns double
InstantiatePlaybackAudioStreamPlayback
# InstantiatePlayback
C#
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).

Returns AudioStreamPlayback
IsMetaStreambool
# IsMetaStream
C#
public bool IsMetaStream();

Returns true if the stream is a collection of other streams, false otherwise.

Returns bool
IsMonophonicbool
# IsMonophonic
C#
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.

Returns bool
_GetBarBeatsint
# _GetBarBeats
C#
public virtual int _GetBarBeats();

Override this method to return the bar beats of this stream.

Returns int
_GetBeatCountint
# _GetBeatCount
C#
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).

Returns int
_GetBpmdouble
# _GetBpm
C#
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).

Returns double
_GetLengthdouble
# _GetLength
C#
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.

Returns double
_GetParameterListReckfell.Collections.Array<Reckfell.Collections.Dictionary>
# _GetParameterList
C#
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.

Returns Reckfell.Collections.Array<Reckfell.Collections.Dictionary>
_GetStreamNamestring · Deprecated
# _GetStreamName
C#
public virtual string _GetStreamName();

Override this method to customize the name assigned to this audio stream.

Returns string
_GetTagsReckfell.Collections.Dictionary
# _GetTags
C#
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.

Returns Reckfell.Collections.Dictionary
_HasLoopbool
# _HasLoop
C#
public virtual bool _HasLoop();

Override this method to return true if this stream has a loop.

Returns bool
_InstantiatePlaybackAudioStreamPlayback
# _InstantiatePlayback
C#
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).

Returns AudioStreamPlayback
_IsMonophonicbool
# _IsMonophonic
C#
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.

Returns bool

Signals and events1

ParameterListChangedEvent
# ParameterListChanged
C#
public event Action ParameterListChanged;

Signal to be emitted to notify when the parameter list changed.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.