C# Class AudioEndpointManager, AudioChanger

ファイルを表示 Open project: aifdsc/AudioChanger Class Usage Examples

Public Methods

Method Description
AudioEndpointManager ( ) : System
BytesToDate ( Byte bytes ) : DateTime
DateToBytes ( DateTime date ) : Byte[]
RefreshAvailableAudioDevices ( ) : void
SetDefaultInputDevice ( AudioDevice, device ) : bool
SetDefaultInputDevice ( string deviceId ) : bool
SetDefaultInputDevice ( string deviceName, string busName ) : bool
SetDefaultOutputDevice ( AudioDevice, device ) : bool
SetDefaultOutputDevice ( string deviceId ) : bool
SetDefaultOutputDevice ( string deviceName, string busName ) : bool
SetNextDefaultInputDevice ( IList deviceBusNamePairs ) : bool
SetNextDefaultInputDevice ( IList deviceBusNamePairs, int startIndex ) : bool
SetNextDefaultOutputDevice ( IList deviceBusNamePairs ) : bool
SetNextDefaultOutputDevice ( IList deviceBusNamePairs, int startIndex ) : bool

Private Methods

Method Description
getAudioDevice ( List list, string deviceName, string busName ) : AudioDevice,
getAvailableAudioDevices ( string regKey, bool includeNonEnabledStates ) : List
setDefaultAudioDevice ( string regKey, string deviceId, string deviceIdPrefix ) : bool
setNextDefaultAudioDevice ( string regKey, string deviceIdPrefix, List devices, IList deviceBusNamePairs, int startIndex ) : bool

Method Details

AudioEndpointManager() public method

public AudioEndpointManager ( ) : System
return System

BytesToDate() public static method

public static BytesToDate ( Byte bytes ) : DateTime
bytes Byte
return DateTime

DateToBytes() public static method

public static DateToBytes ( DateTime date ) : Byte[]
date DateTime
return Byte[]

RefreshAvailableAudioDevices() public method

public RefreshAvailableAudioDevices ( ) : void
return void

SetDefaultInputDevice() public method

public SetDefaultInputDevice ( AudioDevice, device ) : bool
device AudioDevice,
return bool

SetDefaultInputDevice() public method

public SetDefaultInputDevice ( string deviceId ) : bool
deviceId string
return bool

SetDefaultInputDevice() public method

public SetDefaultInputDevice ( string deviceName, string busName ) : bool
deviceName string
busName string
return bool

SetDefaultOutputDevice() public method

public SetDefaultOutputDevice ( AudioDevice, device ) : bool
device AudioDevice,
return bool

SetDefaultOutputDevice() public method

public SetDefaultOutputDevice ( string deviceId ) : bool
deviceId string
return bool

SetDefaultOutputDevice() public method

public SetDefaultOutputDevice ( string deviceName, string busName ) : bool
deviceName string
busName string
return bool

SetNextDefaultInputDevice() public method

public SetNextDefaultInputDevice ( IList deviceBusNamePairs ) : bool
deviceBusNamePairs IList
return bool

SetNextDefaultInputDevice() public method

public SetNextDefaultInputDevice ( IList deviceBusNamePairs, int startIndex ) : bool
deviceBusNamePairs IList
startIndex int
return bool

SetNextDefaultOutputDevice() public method

public SetNextDefaultOutputDevice ( IList deviceBusNamePairs ) : bool
deviceBusNamePairs IList
return bool

SetNextDefaultOutputDevice() public method

public SetNextDefaultOutputDevice ( IList deviceBusNamePairs, int startIndex ) : bool
deviceBusNamePairs IList
startIndex int
return bool