C# Class xZune.Bass.RecordManager

Manage record channels.
Exibir arquivo Open project: higankanshi/xZune.Bass

Public Methods

Method Description
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.

Method Details

Free() public static method

Frees all resources used by the recording device.
public static Free ( ) : void
return void

GetDeviceInfomation() public static method

Get information on a recording device.
public static GetDeviceInfomation ( int device ) : DeviceInfo
device int The device to get the information of... 0 = first.
return xZune.Bass.Interop.Core.DeviceInfo

GetInfomation() public static method

Get information on the recording device being used.
public static GetInfomation ( ) : RecordInfo
return xZune.Bass.Interop.Core.RecordInfo

GetInput() public static method

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.
return RecordInputType

GetInputName() public static method

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.
return String

Initialize() public static method

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. ///
return void

SetInput() public static method

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.
return void

Start() public static method

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. ///
return Record