C# 클래스 Nanook.TheGhost.WavProcessor

파일 보기 프로젝트 열기: Nanook/TheGHOST

공개 메소드들

메소드 설명
ChangeFsbInternalFilename ( string fsbFilename, string internalFilename ) : void

Converts all found wav files for the songQbKey passed on contruction to FSB format.

CombineAudio ( float volume, string dstFilename ) : void
CreatePreview ( int offset, int length, int fade, float volume, bool volumeApplied, string dstFilename ) : void
CreateSilentWav ( int length, string dstFilename ) : void
CreateSilentWav ( int length, string dstFilename, bool stereo, int samplesPerSec ) : void
FilesEqual ( string fileA, string fileB ) : bool

test 10 1k chunk from random parts of the files

FixWavHeader ( Stream wavStream ) : WavSingleChunkHeader
IsWavSilent ( string filename, float tolerence ) : bool

Test for silent wavs

Normalize ( string filename, bool halfVolume ) : void
ParseWavSingleChunkHeader ( Stream wavStream ) : WavSingleChunkHeader
PlayWav ( string wavFilename, SoundFlags soundFlags ) : void
SetLengthSilenceAndVolume ( float silenceInsertLength, float maxLength, float volume, string fileName ) : void

Adds silence to wav files alter volume

StopWav ( ) : void
Truncate ( string filename, float lengthMs ) : void
WriteSingleChunkHeader ( WavSingleChunkHeader header, Stream wavStream ) : void

비공개 메소드들

메소드 설명
PlaySound ( string pszSound, IntPtr hMod, SoundFlags sf ) : bool

메소드 상세

ChangeFsbInternalFilename() 공개 메소드

Converts all found wav files for the songQbKey passed on contruction to FSB format.
public ChangeFsbInternalFilename ( string fsbFilename, string internalFilename ) : void
fsbFilename string
internalFilename string
리턴 void

CombineAudio() 공개 정적인 메소드

public static CombineAudio ( float volume, string dstFilename ) : void
volume float
dstFilename string
리턴 void

CreatePreview() 공개 정적인 메소드

public static CreatePreview ( int offset, int length, int fade, float volume, bool volumeApplied, string dstFilename ) : void
offset int
length int
fade int
volume float
volumeApplied bool
dstFilename string
리턴 void

CreateSilentWav() 공개 정적인 메소드

public static CreateSilentWav ( int length, string dstFilename ) : void
length int
dstFilename string
리턴 void

CreateSilentWav() 공개 정적인 메소드

public static CreateSilentWav ( int length, string dstFilename, bool stereo, int samplesPerSec ) : void
length int
dstFilename string
stereo bool
samplesPerSec int
리턴 void

FilesEqual() 공개 정적인 메소드

test 10 1k chunk from random parts of the files
public static FilesEqual ( string fileA, string fileB ) : bool
fileA string
fileB string
리턴 bool

FixWavHeader() 공개 정적인 메소드

public static FixWavHeader ( Stream wavStream ) : WavSingleChunkHeader
wavStream Stream
리턴 WavSingleChunkHeader

IsWavSilent() 공개 정적인 메소드

Test for silent wavs
public static IsWavSilent ( string filename, float tolerence ) : bool
filename string input raw wav
tolerence float 0=0% to 1=1%
리턴 bool

Normalize() 공개 정적인 메소드

public static Normalize ( string filename, bool halfVolume ) : void
filename string
halfVolume bool
리턴 void

ParseWavSingleChunkHeader() 공개 정적인 메소드

public static ParseWavSingleChunkHeader ( Stream wavStream ) : WavSingleChunkHeader
wavStream Stream
리턴 WavSingleChunkHeader

PlayWav() 공개 정적인 메소드

public static PlayWav ( string wavFilename, SoundFlags soundFlags ) : void
wavFilename string
soundFlags SoundFlags
리턴 void

SetLengthSilenceAndVolume() 공개 정적인 메소드

Adds silence to wav files alter volume
public static SetLengthSilenceAndVolume ( float silenceInsertLength, float maxLength, float volume, string fileName ) : void
silenceInsertLength float Milliseconds to insert at start of wav
maxLength float If the wav is longer than this then crop (includes silence), if 0 then don't crop
volume float 0=silent, 1=100%
fileName string
리턴 void

StopWav() 공개 정적인 메소드

public static StopWav ( ) : void
리턴 void

Truncate() 공개 정적인 메소드

public static Truncate ( string filename, float lengthMs ) : void
filename string
lengthMs float
리턴 void

WriteSingleChunkHeader() 공개 정적인 메소드

public static WriteSingleChunkHeader ( WavSingleChunkHeader header, Stream wavStream ) : void
header WavSingleChunkHeader
wavStream Stream
리턴 void