powccoreaudio.endpointvolume module

目次

powccoreaudio.endpointvolume module#

エンドポイントの音量。

主なクラスは AudioEndpointVolume です。MMDevice から作成されます。

class powccoreaudio.endpointvolume.AudioEndpointVolume(o: Any, eventcontext_guid: GUID | None = None)#

ベースクラス: object

オーディオエンドポイント。IAudioEndpointVolumeインターフェイスのラッパーです。

class VolumeRange(min_db: float, max_db: float, increment_db: float)#

ベースクラス: object

increment_db: float#
max_db: float#
min_db: float#
class VolumeStepInfo(step: int, step_count: int)#

ベースクラス: object

step: int#
step_count: int#
property channel_count: int#
property channel_count_nothrow: ComResult[int]#
property eventcontext_guid: GUID | None#
get_channel_volume_level_nothrow(channel: int) ComResult[float]#
get_channel_volume_level_scalar_nothrow(channel: int) ComResult[float]#
property hardware_support: int#
property hardware_support_nothrow: ComResult[int]#
property master_volume_level: float#
property master_volume_level_nothrow: ComResult[float]#
property master_volume_level_scalar: float#
property master_volume_level_scalar_nothrow: ComResult[float]#
property mute: bool#
property mute_nothrow: ComResult[bool]#
set_channel_volume_level(channel: int, value: float) None#
set_channel_volume_level_nothrow(channel: int, value: float) ComResult[None]#
set_channel_volume_level_scalar(channel: int, value: float) None#
set_channel_volume_level_scalar_nothrow(channel: int, value: float) ComResult[None]#
set_master_volume_level_nothrow(value: float) ComResult[None]#
set_master_volume_level_scalar_nothrow(value: float) ComResult[None]#
set_mute_nothrow(f: bool) ComResult[None]#
property volume_range: VolumeRange#
property volume_range_nothrow: ComResult[VolumeRange]#
property volume_step_info: VolumeStepInfo#
property volume_step_info_nothrow: ComResult[VolumeStepInfo]#
volume_stepdown() None#
volume_stepdown_nothrow() ComResult[None]#
volume_stepup() None#
volume_stepup_nothrow() ComResult[None]#
property wrapped_obj: c_void_p#
class powccoreaudio.endpointvolume.AudioMeterInformation(o: Any)#

ベースクラス: object

聴覚メーター情報。IAudioMeterInformationインターフェイスのラッパーです。

作成には MMDevice を使用します。

property channelspeakvalues: tuple[float]#
property channelspeakvalues_nothrow: ComResult[tuple[float]]#
property hardwaresupport: ENDPOINT_HARDWARE_SUPPORT#
property hardwaresupport_nothrow: ComResult[ENDPOINT_HARDWARE_SUPPORT]#
property meteringchannelcount: int#
property meteringchannelcount_nothrow: ComResult[int]#
property peakvalue: float#
property peakvalue_nothrow: ComResult[float]#
property wrapped_obj: c_void_p#
class powccoreaudio.endpointvolume.AudioVolumeNotificationData#

ベースクラス: Structure

AUDIO_VOLUME_NOTIFICATION_DATA

channel_volumes0#

Structure/Union member

channels#

Structure/Union member

event_context_guid#

Structure/Union member

master_volume#

Structure/Union member

muted#

Structure/Union member

class powccoreaudio.endpointvolume.ENDPOINT_HARDWARE_SUPPORT(*values)#

ベースクラス: IntFlag

ENDPOINT_HARDWARE_SUPPORT_*定数

METER = 4#
MUTE = 2#
VOLUME = 1#
class powccoreaudio.endpointvolume.IAudioEndpointVolume#

ベースクラス: IUnknown

GetChannelCount = <COM method offset 5: WinFunctionType>#
GetChannelVolumeLevel = <COM method offset 12: WinFunctionType>#
GetChannelVolumeLevelScalar = <COM method offset 13: WinFunctionType>#
GetMasterVolumeLevel = <COM method offset 8: WinFunctionType>#
GetMasterVolumeLevelScalar = <COM method offset 9: WinFunctionType>#
GetMute = <COM method offset 15: WinFunctionType>#
GetVolumeRange = <COM method offset 20: WinFunctionType>#
GetVolumeStepInfo = <COM method offset 16: WinFunctionType>#
QueryHardwareSupport = <COM method offset 19: WinFunctionType>#
RegisterControlChangeNotify = <COM method offset 3: WinFunctionType>#
SetChannelVolumeLevel = <COM method offset 10: WinFunctionType>#
SetChannelVolumeLevelScalar = <COM method offset 11: WinFunctionType>#
SetMasterVolumeLevel = <COM method offset 6: WinFunctionType>#
SetMasterVolumeLevelScalar = <COM method offset 7: WinFunctionType>#
SetMute = <COM method offset 14: WinFunctionType>#
UnregisterControlChangeNotify = <COM method offset 4: WinFunctionType>#
VolumeStepDown = <COM method offset 18: WinFunctionType>#
VolumeStepUp = <COM method offset 17: WinFunctionType>#
class powccoreaudio.endpointvolume.IAudioEndpointVolumeCallback#

ベースクラス: IUnknown

OnNotify = <COM method offset 3: WinFunctionType>#
class powccoreaudio.endpointvolume.IAudioEndpointVolumeEx#

ベースクラス: IAudioEndpointVolume

GetVolumeRangeChannel = <COM method offset 21: WinFunctionType>#
class powccoreaudio.endpointvolume.IAudioMeterInformation#

ベースクラス: IUnknown

GetChannelsPeakValues = <COM method offset 5: WinFunctionType>#
GetMeteringChannelCount = <COM method offset 4: WinFunctionType>#
GetPeakValue = <COM method offset 3: WinFunctionType>#
QueryHardwareSupport = <COM method offset 6: WinFunctionType>#