C# 클래스 GAudio.StreamToWavModule

Component for safe writing of wav files from audio streams. Writing occurs in a seperate thread so as not to burden the audio thread. Supports sample accurate start and duration.
상속: AGATStreamObserver, IGATAudioThreadStreamClient
파일 보기 프로젝트 열기: gregzo/G-Audio

공개 프로퍼티들

프로퍼티 타입 설명
path string
pathType PathRelativeType

공개 메소드들

메소드 설명
EndWriting ( ) : void

Stops writing and finalizes the file's header. As this occurs on a seperate thread, you should not assume that the file is ready to be opened immediately.

IGATAudioThreadStreamClient ( float data, int offset, bool emptyData, IGATAudioThreadStream stream ) : void
OnDestroy ( ) : void
OnDisable ( ) : void
SetPath ( string newPath, PathRelativeType newPathType ) : string

Sets the path to which to write to. If the path contains a non-existent directory, it will be created.

StartWriting ( double targetDspTime = 0d, int recNumFrames = -1 ) : void

Starts writing the stream at precise dspTime if one is specified. If no dspTime is specified, or if the specified dspTime is too soon, starts writing asap. If recNumFrames is specified, writing will automatically stop once the precise number of frames has been written, else you should call EndWriting.

보호된 메소드들

메소드 설명
Start ( ) : void

메소드 상세

EndWriting() 공개 메소드

Stops writing and finalizes the file's header. As this occurs on a seperate thread, you should not assume that the file is ready to be opened immediately.
public EndWriting ( ) : void
리턴 void

IGATAudioThreadStreamClient() 공개 메소드

public IGATAudioThreadStreamClient ( float data, int offset, bool emptyData, IGATAudioThreadStream stream ) : void
data float
offset int
emptyData bool
stream IGATAudioThreadStream
리턴 void

OnDestroy() 공개 메소드

public OnDestroy ( ) : void
리턴 void

OnDisable() 공개 메소드

public OnDisable ( ) : void
리턴 void

SetPath() 공개 메소드

Sets the path to which to write to. If the path contains a non-existent directory, it will be created.
public SetPath ( string newPath, PathRelativeType newPathType ) : string
newPath string
newPathType PathRelativeType
리턴 string

Start() 보호된 메소드

protected Start ( ) : void
리턴 void

StartWriting() 공개 메소드

Starts writing the stream at precise dspTime if one is specified. If no dspTime is specified, or if the specified dspTime is too soon, starts writing asap. If recNumFrames is specified, writing will automatically stop once the precise number of frames has been written, else you should call EndWriting.
public StartWriting ( double targetDspTime = 0d, int recNumFrames = -1 ) : void
targetDspTime double
recNumFrames int
리턴 void

프로퍼티 상세

path 공개적으로 프로퍼티

The path at which to write the file. The path will be processed occording to pathType. To change paths at runtime, use SetPath.
public string path
리턴 string

pathType 공개적으로 프로퍼티

Type of path: relative to Application.dataPath or persistentDataPath, or absolute.
public PathRelativeType pathType
리턴 PathRelativeType