C# Класс DevAudio.Microcone.Device

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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