C# 클래스 VideoPlayerController.AudioManager

Controls audio using the Windows CoreAudio API from: http://stackoverflow.com/questions/14306048/controling-volume-mixer and: http://netcoreaudio.codeplex.com/
파일 보기 프로젝트 열기: sverrirs/XboxBigButton

공개 메소드들

메소드 설명
GetApplicationMute ( int pid ) : bool?
GetApplicationVolume ( int pid ) : float?
GetMasterVolume ( ) : float

Gets the current master volume in scalar values (percentage)

GetMasterVolumeMute ( ) : bool

Gets the mute state of the master volume. While the volume can be muted the GetMasterVolume will still return the pre-muted volume value.

SetApplicationMute ( int pid, bool mute ) : void
SetApplicationVolume ( int pid, float level ) : void
SetMasterVolume ( float newLevel ) : void

Sets the master volume to a specific level

SetMasterVolumeMute ( bool isMuted ) : void

Mute or unmute the master volume

StepMasterVolume ( float stepAmount ) : float

Increments or decrements the current volume level by the stepAmount.

ToggleMasterVolumeMute ( ) : bool

Switches between the master volume mute states depending on the current state

비공개 메소드들

메소드 설명
GetMasterVolumeObject ( ) : IAudioEndpointVolume
GetVolumeObject ( int pid ) : ISimpleAudioVolume

메소드 상세

GetApplicationMute() 공개 정적인 메소드

public static GetApplicationMute ( int pid ) : bool?
pid int
리턴 bool?

GetApplicationVolume() 공개 정적인 메소드

public static GetApplicationVolume ( int pid ) : float?
pid int
리턴 float?

GetMasterVolume() 공개 정적인 메소드

Gets the current master volume in scalar values (percentage)
public static GetMasterVolume ( ) : float
리턴 float

GetMasterVolumeMute() 공개 정적인 메소드

Gets the mute state of the master volume. While the volume can be muted the GetMasterVolume will still return the pre-muted volume value.
public static GetMasterVolumeMute ( ) : bool
리턴 bool

SetApplicationMute() 공개 정적인 메소드

public static SetApplicationMute ( int pid, bool mute ) : void
pid int
mute bool
리턴 void

SetApplicationVolume() 공개 정적인 메소드

public static SetApplicationVolume ( int pid, float level ) : void
pid int
level float
리턴 void

SetMasterVolume() 공개 정적인 메소드

Sets the master volume to a specific level
public static SetMasterVolume ( float newLevel ) : void
newLevel float Value between 0 and 100 indicating the desired scalar value of the volume
리턴 void

SetMasterVolumeMute() 공개 정적인 메소드

Mute or unmute the master volume
public static SetMasterVolumeMute ( bool isMuted ) : void
isMuted bool true to mute the master volume, false to unmute
리턴 void

StepMasterVolume() 공개 정적인 메소드

Increments or decrements the current volume level by the stepAmount.
public static StepMasterVolume ( float stepAmount ) : float
stepAmount float Value between -100 and 100 indicating the desired step amount. Use negative numbers to decrease /// the volume and positive numbers to increase it.
리턴 float

ToggleMasterVolumeMute() 공개 정적인 메소드

Switches between the master volume mute states depending on the current state
public static ToggleMasterVolumeMute ( ) : bool
리턴 bool