C# Класс xZune.Bass.RecordManager

Manage record channels.
Показать файл Открыть проект

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

Метод Описание
Free ( ) : void

Frees all resources used by the recording device.

GetDeviceInfomation ( int device ) : DeviceInfo

Get information on a recording device.

GetInfomation ( ) : RecordInfo

Get information on the recording device being used.

GetInput ( int input, float &volume ) : RecordInputType

Get the current settings of a recording input source.

GetInputName ( int input ) : String

Get the text description of a recording input source.

Initialize ( int device ) : void

Initializes a recording device.

SetInput ( int input, float volume, RecordInputStatus staus ) : void

Adjusts the settings of a recording input source.

Start ( uint freq, uint channels, RecordInitializationConfig configs, ushort period ) : Record

Starts recording.

Описание методов

Free() публичный статический Метод

Frees all resources used by the recording device.
public static Free ( ) : void
Результат void

GetDeviceInfomation() публичный статический Метод

Get information on a recording device.
public static GetDeviceInfomation ( int device ) : DeviceInfo
device int The device to get the information of... 0 = first.
Результат xZune.Bass.Interop.Core.DeviceInfo

GetInfomation() публичный статический Метод

Get information on the recording device being used.
public static GetInfomation ( ) : RecordInfo
Результат xZune.Bass.Interop.Core.RecordInfo

GetInput() публичный статический Метод

Get the current settings of a recording input source.
public static GetInput ( int input, float &volume ) : RecordInputType
input int The input to get the settings of... 0 = first, -1 = master.
volume float Get volume, 0 = don't retrieve the volume.
Результат RecordInputType

GetInputName() публичный статический Метод

Get the text description of a recording input source.
public static GetInputName ( int input ) : String
input int The input to get the description of... 0 = first, -1 = master.
Результат String

Initialize() публичный статический Метод

Initializes a recording device.
public static Initialize ( int device ) : void
device int /// The device to use... -1 = default device, 0 = first. can be /// used to enumerate the available devices. ///
Результат void

SetInput() публичный статический Метод

Adjusts the settings of a recording input source.
public static SetInput ( int input, float volume, RecordInputStatus staus ) : void
input int The input to adjust the settings of... 0 = first, -1 = master.
volume float The volume level... 0 (silent) to 1 (max), less than 0 = leave current.
staus RecordInputStatus The new setting.
Результат void

Start() публичный статический Метод

Starts recording.
public static Start ( uint freq, uint channels, RecordInitializationConfig configs, ushort period ) : Record
freq uint The sample rate to record at.
channels uint The number of channels... 1 = mono, 2 = stereo, etc.
configs RecordInitializationConfig Configures of recording.
period ushort /// The period (in milliseconds) between calls to the callback function. The minimum period is 5ms, /// the maximum is half the BASS_CONFIG_REC_BUFFER setting. If the period specified is outside this range, it is /// automatically capped. The default is 100ms. ///
Результат Record