Table of Contents

Class SoundBuffer

Namespace
Bonsai.Audio.Configuration
Assembly
Bonsai.Audio.dll

Provides configuration and loading functionality for WAV audio buffers.

public class SoundBuffer : BufferConfiguration, IResourceConfiguration
Inheritance
SoundBuffer
Implements
Inherited Members

Properties

FileName

Gets or sets the name of the sound WAV file.

[FileNameFilter("WAV Files (*.wav;*.wave)|*.wav;*.wave|All Files|*.*")]
[TypeConverter(typeof(ResourceFileNameConverter))]
public string FileName { get; set; }

Property Value

string

Methods

CreateResource(ResourceManager)

Creates a new buffer resource by reading and storing audio data from a WAV file.

public override Buffer CreateResource(ResourceManager resourceManager)

Parameters

resourceManager ResourceManager

The ResourceManager object onto which this resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.

Returns

Buffer

A new instance of the Buffer class storing audio data from the loaded WAV file.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.