C# Class Glare.Audio.AudioStream

This acts as a stream for producing audio data.
Inheritance: Stream
Exibir arquivo Open project: Burton-Radons/Alexandria Class Usage Examples

Public Methods

Method Description
Flush ( ) : void
ReadToBuffer ( AudioBuffer buffer ) : AudioBuffer
ReadToBuffer ( AudioContext context ) : AudioBuffer
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
GetStream ( FileInfo file ) : Stream
GetStream ( IntPtr data, int length ) : Stream
GetStream ( byte data ) : Stream
GetStream ( byte data, int offset, int length ) : Stream
GetStream ( string path ) : Stream
GetStream ( void data, int length ) : Stream

Private Methods

Method Description
ByteOffsetFromTimeSpan ( System.TimeSpan value ) : long
ByteOffsetToTimeSpan ( long offset ) : System.TimeSpan

Method Details

Flush() public method

public Flush ( ) : void
return void

GetStream() protected static method

protected static GetStream ( FileInfo file ) : Stream
file System.IO.FileInfo
return Stream

GetStream() protected static method

protected static GetStream ( IntPtr data, int length ) : Stream
data System.IntPtr
length int
return Stream

GetStream() protected static method

protected static GetStream ( byte data ) : Stream
data byte
return Stream

GetStream() protected static method

protected static GetStream ( byte data, int offset, int length ) : Stream
data byte
offset int
length int
return Stream

GetStream() protected static method

protected static GetStream ( string path ) : Stream
path string
return Stream

GetStream() protected static method

protected static GetStream ( void data, int length ) : Stream
data void
length int
return Stream

ReadToBuffer() public method

public ReadToBuffer ( AudioBuffer buffer ) : AudioBuffer
buffer AudioBuffer
return AudioBuffer

ReadToBuffer() public method

public ReadToBuffer ( AudioContext context ) : AudioBuffer
context AudioContext
return AudioBuffer

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void