C# 클래스 HoloToolkit.Unity.MicStream

파일 보기 프로젝트 열기: Microsoft/HoloToolkit-Unity 1 사용 예제들

공개 메소드들

메소드 설명
CheckForErrorOnCall ( int returnCode ) : bool

Prints useful error/warning messages based on error codes returned from the functions in this class

MicStartStream ( bool keepData, bool previewOnDevice ) : int

Call this to start receiving data from a microphone. Then, each frame, call MicGetFrame.

MicStopRecording ( ) : string

Finishes writing the file recording started with MicStartRecording.

비공개 메소드들

메소드 설명
MicDestroy ( ) : int
MicGetDefaultBufferSize ( ) : int
MicGetDefaultNumChannels ( ) : int
MicGetFrame ( float buffer, int length, int numchannels ) : int
MicInitializeCustomRate ( int category, int samplerate ) : int
MicInitializeDefault ( int category ) : int
MicPause ( ) : int
MicResume ( ) : int
MicSetGain ( float g ) : int
MicStartRecording ( string filename, bool previewOnDevice ) : int
MicStartStream ( bool keepData, bool previewOnDevice, LiveMicCallback micsignal ) : int
MicStopRecording ( StringBuilder sb ) : void
MicStopStream ( ) : int

메소드 상세

CheckForErrorOnCall() 공개 정적인 메소드

Prints useful error/warning messages based on error codes returned from the functions in this class
public static CheckForErrorOnCall ( int returnCode ) : bool
returnCode int An error code returned by another function in this class
리턴 bool

MicStartStream() 공개 정적인 메소드

Call this to start receiving data from a microphone. Then, each frame, call MicGetFrame.
public static MicStartStream ( bool keepData, bool previewOnDevice ) : int
keepData bool If true, all data will stay in the queue, if the client code is running behind. This can lead to significant audio lag, so is not appropriate for low-latency situations like reall-time voice chat.
previewOnDevice bool If true, the audio from the microphone will be played through your speakers.
리턴 int

MicStopRecording() 공개 정적인 메소드

Finishes writing the file recording started with MicStartRecording.
public static MicStopRecording ( ) : string
리턴 string