Table of Contents

Class CachedSound

Namespace
NAudio.Extras
Assembly
NAudio.Extras.dll

Used by AudioPlaybackEngine

public class CachedSound
Inheritance
CachedSound
Inherited Members

Constructors

CachedSound(Stream)

Creates a new CachedSound from a stream (e.g. an embedded resource or in-memory byte array). The stream must be readable and seekable; the caller retains ownership of it.

public CachedSound(Stream audioStream)

Parameters

audioStream Stream

CachedSound(string)

Creates a new CachedSound from a file

public CachedSound(string audioFileName)

Parameters

audioFileName string

Properties

AudioData

Audio data

public float[] AudioData { get; }

Property Value

float[]

WaveFormat

Format of the audio

public WaveFormat WaveFormat { get; }

Property Value

WaveFormat