HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::win32_device_interface Class Reference

Public Member Functions

 win32_device_interface (std::string device_name)
ULONG pin_count () const noexcept
std::string pin_name (ULONG pin_nr) const noexcept
generator< ULONG > find_streaming_pins (audio_direction direction) const noexcept
GUID pin_category (ULONG pin_nr) const noexcept
KSPIN_COMMUNICATION pin_communication (ULONG pin_nr) const noexcept
generator< audio_format_rangeget_format_ranges (ULONG pin_nr) const noexcept
generator< audio_format_rangeget_format_ranges (audio_direction direction) const noexcept
 Get all the audio formats supported by this device.
template<typename T>
generator< T const * > get_pin_properties (ULONG pin_id, KSPROPERTY_PIN property) const
template<>
generator< KSDATARANGE const * > get_pin_properties (ULONG pin_id, KSPROPERTY_PIN property) const

Member Function Documentation

◆ get_format_ranges()

generator< audio_format_range > hi::v1::win32_device_interface::get_format_ranges ( audio_direction direction) const
inlinenodiscardnoexcept

Get all the audio formats supported by this device.

Note
The audio device is very likely lying about its capabilities, the resulting formats should be filtered through IAudioClient::IsFormatSupported().
Parameters
directionThe audio direction for which the formats will be enumerated.
Returns
A set of audio format ranges that this audio device supports.

◆ get_pin_properties()

template<>
generator< KSDATARANGE const * > hi::v1::win32_device_interface::get_pin_properties ( ULONG pin_id,
KSPROPERTY_PIN property ) const
inlinenodiscard
Note
KSDATARANGE is same as KSDATAFORMAT.

The documentation for this class was generated from the following file: