C# 클래스 NAudio.Lame.LameMP3FileWriter

MP3 encoding class, uses libmp3lame DLL to encode.
상속: Stream
파일 보기 프로젝트 열기: ImagineLearning/NAudio.Lame 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
outBuffer byte[]

공개 메소드들

메소드 설명
Flush ( ) : void

Finalise compression, add final output to output stream and close encoder

GetLameInstance ( ) : LibMp3Lame

Get internal LAME library instance

LameMP3FileWriter ( Stream outStream, WaveFormat format, LAMEPreset quality ) : System

Create MP3FileWriter to write to supplied stream

LameMP3FileWriter ( Stream outStream, WaveFormat format, int bitRate ) : System

Create MP3FileWriter to write to supplied stream

LameMP3FileWriter ( string outFileName, WaveFormat format, LAMEPreset quality ) : System

Create MP3FileWriter to write to a file on disk

LameMP3FileWriter ( string outFileName, WaveFormat format, int bitRate ) : System

Create MP3FileWriter to write to a file on disk

Read ( byte buffer, int offset, int count ) : int

Reading not supported. Throws NotImplementedException.

Seek ( long offset, SeekOrigin origin ) : long

Seeking not supported. Throws NotImplementedException.

SetLength ( long value ) : void

Setting length not supported. Throws NotImplementedException.

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

Add data to output buffer, sending to encoder when buffer full

보호된 메소드들

메소드 설명
Dispose ( bool final ) : void

Dispose of object

비공개 메소드들

메소드 설명
Encode ( ) : void
encode_float_mono ( ) : int
encode_float_stereo ( ) : int
encode_pcm_16_mono ( ) : int
encode_pcm_16_stereo ( ) : int

메소드 상세

Dispose() 보호된 메소드

Dispose of object
protected Dispose ( bool final ) : void
final bool True if called from destructor, false otherwise
리턴 void

Flush() 공개 메소드

Finalise compression, add final output to output stream and close encoder
public Flush ( ) : void
리턴 void

GetLameInstance() 공개 메소드

Get internal LAME library instance
public GetLameInstance ( ) : LibMp3Lame
리턴 LibMp3Lame

LameMP3FileWriter() 공개 메소드

Create MP3FileWriter to write to supplied stream
public LameMP3FileWriter ( Stream outStream, WaveFormat format, LAMEPreset quality ) : System
outStream Stream Stream to write encoded data to
format NAudio.Wave.WaveFormat Input WaveFormat
quality LAMEPreset LAME quality preset
리턴 System

LameMP3FileWriter() 공개 메소드

Create MP3FileWriter to write to supplied stream
public LameMP3FileWriter ( Stream outStream, WaveFormat format, int bitRate ) : System
outStream Stream Stream to write encoded data to
format NAudio.Wave.WaveFormat Input WaveFormat
bitRate int Output bit rate in kbps
리턴 System

LameMP3FileWriter() 공개 메소드

Create MP3FileWriter to write to a file on disk
public LameMP3FileWriter ( string outFileName, WaveFormat format, LAMEPreset quality ) : System
outFileName string Name of file to create
format NAudio.Wave.WaveFormat Input WaveFormat
quality LAMEPreset LAME quality preset
리턴 System

LameMP3FileWriter() 공개 메소드

Create MP3FileWriter to write to a file on disk
public LameMP3FileWriter ( string outFileName, WaveFormat format, int bitRate ) : System
outFileName string Name of file to create
format NAudio.Wave.WaveFormat Input WaveFormat
bitRate int Output bit rate in kbps
리턴 System

Read() 공개 메소드

Reading not supported. Throws NotImplementedException.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

Seek() 공개 메소드

Seeking not supported. Throws NotImplementedException.
public Seek ( long offset, SeekOrigin origin ) : long
offset long Seek offset
origin SeekOrigin Seek origin
리턴 long

SetLength() 공개 메소드

Setting length not supported. Throws NotImplementedException.
public SetLength ( long value ) : void
value long Length value
리턴 void

Write() 공개 메소드

Add data to output buffer, sending to encoder when buffer full
public Write ( byte buffer, int offset, int count ) : void
buffer byte Source buffer
offset int Offset of data in buffer
count int Length of data
리턴 void

프로퍼티 상세

outBuffer 보호되어 있는 프로퍼티

Output buffer, size determined by call to Lame.beInitStream
protected byte[] outBuffer
리턴 byte[]