Class CachedSound
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
audioStreamStream
CachedSound(string)
Creates a new CachedSound from a file
public CachedSound(string audioFileName)
Parameters
audioFileNamestring
Properties
AudioData
Audio data
public float[] AudioData { get; }
Property Value
- float[]
WaveFormat
Format of the audio
public WaveFormat WaveFormat { get; }