Table of Contents

Class AudioResources

Namespace
Bonsai.Audio
Assembly
Bonsai.Audio.dll

Represents an operator that creates a collection of buffer resources and audio sources to be loaded into the resource manager.

public class AudioResources : ResourceLoader
Inheritance
AudioResources
Inherited Members

Properties

Buffers

Gets the collection of buffer resources to be loaded into the resource manager.

public BufferConfigurationCollection Buffers { get; }

Property Value

BufferConfigurationCollection

Sources

Gets the collection of audio sources to be loaded into the resource manager.

public SourceConfigurationCollection Sources { get; }

Property Value

SourceConfigurationCollection

Methods

GetResources()

Returns the set of resources to be loaded into the resource manager.

protected override IEnumerable<IResourceConfiguration> GetResources()

Returns

IEnumerable<IResourceConfiguration>

A collection of IResourceConfiguration objects to be loaded into the resource manager.

Process(IObservable<AudioContextManager>)

Creates a collection of buffer resources and audio sources to be loaded into the resource manager.

public IObservable<ResourceConfigurationCollection> Process(IObservable<AudioContextManager> source)

Parameters

source IObservable<AudioContextManager>

A sequence of AudioContextManager objects containing the resource managers into which the resources will be loaded.

Returns

IObservable<ResourceConfigurationCollection>

A sequence of ResourceConfigurationCollection objects which can be used to load resources into the resource manager.