C# Class Glare.Audio.AudioStreamer

This streams AudioBuffer chunks to an AudioSource by streaming from a AudioStream that decompresses formats such as Mp3 or Vorbis.
Inheritance: IDisposable
Show file Open project: Burton-Radons/Alexandria

Public Methods

Method Description
AudioStreamer ( AudioSource source, AudioStream stream ) : System
AudioStreamer ( AudioSource source, AudioStream stream, System.TimeSpan bufferTime ) : System
AudioStreamer ( AudioSource source, AudioStream stream, int bufferSampleCount ) : System
Dispose ( ) : void

Private Methods

Method Description
BufferTimeToSamples ( AudioStream stream, System.TimeSpan time ) : int
FillBuffer ( AudioBuffer buffer ) : void
Update ( ) : void

Method Details

AudioStreamer() public method

public AudioStreamer ( AudioSource source, AudioStream stream ) : System
source AudioSource
stream AudioStream
return System

AudioStreamer() public method

public AudioStreamer ( AudioSource source, AudioStream stream, System.TimeSpan bufferTime ) : System
source AudioSource
stream AudioStream
bufferTime System.TimeSpan
return System

AudioStreamer() public method

public AudioStreamer ( AudioSource source, AudioStream stream, int bufferSampleCount ) : System
source AudioSource
stream AudioStream
bufferSampleCount int
return System

Dispose() public method

public Dispose ( ) : void
return void