C# Class AnimatGuiCtrls.Video.AudioStream

Inheritance: AviStream
显示文件 Open project: NeuroRoboticTech/AnimatLabPublicSource Class Usage Examples

Public Methods

Method Description
AudioStream ( int aviFile, IntPtr aviStream ) : System

Initialize an AudioStream for an existing stream

ExportStream ( String fileName ) : void

Copy the stream into a new file

GetFormat ( ) : Avi.PCMWAVEFORMAT

Read the stream's format information

GetStreamData ( Avi &streamInfo, Avi &format, int &streamLength ) : IntPtr

Returns all data needed to copy the stream

Do not forget to call Marshal.FreeHGlobal and release the raw data pointer

GetStreamInfo ( ) : Avi.AVISTREAMINFO

Read the stream's header information

Private Methods

Method Description
GetStreamInfo ( IntPtr aviStream ) : Avi.AVISTREAMINFO

Read the stream's header information

Method Details

AudioStream() public method

Initialize an AudioStream for an existing stream
public AudioStream ( int aviFile, IntPtr aviStream ) : System
aviFile int The file that contains the stream
aviStream System.IntPtr An IAVISTREAM from [aviFile]
return System

ExportStream() public method

Copy the stream into a new file
public ExportStream ( String fileName ) : void
fileName String Name of the new file
return void

GetFormat() public method

Read the stream's format information
public GetFormat ( ) : Avi.PCMWAVEFORMAT
return Avi.PCMWAVEFORMAT

GetStreamData() public method

Returns all data needed to copy the stream
Do not forget to call Marshal.FreeHGlobal and release the raw data pointer
public GetStreamData ( Avi &streamInfo, Avi &format, int &streamLength ) : IntPtr
streamInfo Avi Receives the header information
format Avi Receives the format
streamLength int Receives the length of the stream
return System.IntPtr

GetStreamInfo() public method

Read the stream's header information
public GetStreamInfo ( ) : Avi.AVISTREAMINFO
return Avi.AVISTREAMINFO