C# Class Glare.Audio.AudioStream

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
ByteOffsetFromTimeSpan ( System.TimeSpan value ) : long
ByteOffsetToTimeSpan ( long offset ) : System.TimeSpan

Method Details

Flush() public méthode

public Flush ( ) : void
Résultat void

GetStream() protected static méthode

protected static GetStream ( FileInfo file ) : Stream
file System.IO.FileInfo
Résultat Stream

GetStream() protected static méthode

protected static GetStream ( IntPtr data, int length ) : Stream
data System.IntPtr
length int
Résultat Stream

GetStream() protected static méthode

protected static GetStream ( byte data ) : Stream
data byte
Résultat Stream

GetStream() protected static méthode

protected static GetStream ( byte data, int offset, int length ) : Stream
data byte
offset int
length int
Résultat Stream

GetStream() protected static méthode

protected static GetStream ( string path ) : Stream
path string
Résultat Stream

GetStream() protected static méthode

protected static GetStream ( void data, int length ) : Stream
data void
length int
Résultat Stream

ReadToBuffer() public méthode

public ReadToBuffer ( AudioBuffer buffer ) : AudioBuffer
buffer AudioBuffer
Résultat AudioBuffer

ReadToBuffer() public méthode

public ReadToBuffer ( AudioContext context ) : AudioBuffer
context AudioContext
Résultat AudioBuffer

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void