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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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