C# 클래스 Translate.Services.Audio.WaveFormatEx

Class WAVEFORMATEX Implementation of a standard WAVEFORMATEX structure
파일 보기 프로젝트 열기: nikhilk/silverlightfx 1 사용 예제들

공개 메소드들

메소드 설명
AudioDurationFromBufferSize ( uint audioDataSize ) : long

Calculate the duration of audio based on the size of the buffer

BufferSizeFromAudioDuration ( long duration ) : long

Calculate the buffer size necessary for a duration of audio

SetFromByteArray ( byte byteArray ) : void

Set the data from a byte array (usually read from a file)

ToHexString ( ) : string

Convert the data to a hex string

ToLittleEndianString ( string bigEndianString ) : string

Convert a BigEndian string to a LittleEndian string

ToString ( ) : string

Ouput the data into a string.

ValidateWaveFormat ( ) : void

Validate that the Wave format is consistent.

메소드 상세

AudioDurationFromBufferSize() 공개 메소드

Calculate the duration of audio based on the size of the buffer
public AudioDurationFromBufferSize ( uint audioDataSize ) : long
audioDataSize uint the buffer size in bytes
리턴 long

BufferSizeFromAudioDuration() 공개 메소드

Calculate the buffer size necessary for a duration of audio
public BufferSizeFromAudioDuration ( long duration ) : long
duration long the duration
리턴 long

SetFromByteArray() 공개 메소드

Set the data from a byte array (usually read from a file)
public SetFromByteArray ( byte byteArray ) : void
byteArray byte The array used as input to the stucture
리턴 void

ToHexString() 공개 메소드

Convert the data to a hex string
public ToHexString ( ) : string
리턴 string

ToLittleEndianString() 공개 정적인 메소드

Convert a BigEndian string to a LittleEndian string
public static ToLittleEndianString ( string bigEndianString ) : string
bigEndianString string A big endian string
리턴 string

ToString() 공개 메소드

Ouput the data into a string.
public ToString ( ) : string
리턴 string

ValidateWaveFormat() 공개 메소드

Validate that the Wave format is consistent.
public ValidateWaveFormat ( ) : void
리턴 void