C# 클래스 DevAudio.Microcone.Device

파일 보기 프로젝트 열기: microcone/microconesdk 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : bool

Closes this device by destroying the asioOut member of this device

Device ( ) : System
Pause ( ) : void

Stops recording but doesn't destroy output files so they can be continued later.

Rescan ( ) : bool

Rescans all compatible audio devices and creates an asioOut object when it finds one.

If more than one device is found, the first one is used.

Resume ( ) : void

Resumes recording after a pause event.

StartRecording ( ) : bool

Starts a new recording using the Microcone. Outputs 2 mix files an 6 (or 5) sector files, in wav format.

Stop ( ) : System.TimeSpan

Stops the Microcone recording and saving to file, and closes the files.

비공개 메소드들

메소드 설명
SetupAudio ( ) : bool
asioOut_AudioAvailable ( object sender, NAudio.Wave.AsioAudioAvailableEventArgs e ) : void

Handles the AudioAvailable event of the asioOut control. Saves audio data (stored in buffers) into WaveFileWriter objects.

createOutputFileObjects ( ) : void

Makes a series of WaveFileWriter objects

createSaveFileNames ( bool makeOutputPath ) : void

Creates an array of file names used for saving audio data to.

destroyOutputFileObjects ( ) : void

Destroys output file objects after closing them off.

outputFileTime ( ) : System.TimeSpan

Returns the total play time of the recorded file.

This should only be called when recording is stopped and during tidy-up.

savePath ( ) : string

Generates a file save path using the user's Documents directory, an app sub-directory, and the current time/date.

메소드 상세

Close() 공개 메소드

Closes this device by destroying the asioOut member of this device
public Close ( ) : bool
리턴 bool

Device() 공개 메소드

public Device ( ) : System
리턴 System

Pause() 공개 메소드

Stops recording but doesn't destroy output files so they can be continued later.
public Pause ( ) : void
리턴 void

Rescan() 공개 메소드

Rescans all compatible audio devices and creates an asioOut object when it finds one.
If more than one device is found, the first one is used.
public Rescan ( ) : bool
리턴 bool

Resume() 공개 메소드

Resumes recording after a pause event.
public Resume ( ) : void
리턴 void

StartRecording() 공개 메소드

Starts a new recording using the Microcone. Outputs 2 mix files an 6 (or 5) sector files, in wav format.
public StartRecording ( ) : bool
리턴 bool

Stop() 공개 메소드

Stops the Microcone recording and saving to file, and closes the files.
public Stop ( ) : System.TimeSpan
리턴 System.TimeSpan