|
HikoGUI
A low latency retained GUI
|
#include <hikogui/audio/audio_device_win32.hpp>
Public Member Functions | |
| audio_device_win32 (IMMDevice *device) | |
| std::string | name () const noexcept override |
| Get a user friendly name of the audio device. | |
| hi::label | label () const noexcept override |
| Get a user friendly label of the audio device. | |
| audio_device_state | state () const noexcept override |
| Get the current state of the audio device. | |
| audio_direction | direction () const noexcept override |
| bool | exclusive () const noexcept override |
| Check if the device is in exclusive mode. | |
| void | set_exclusive (bool exclusive) noexcept override |
| Set the device in exclusive or shared mode. | |
| double | sample_rate () const noexcept override |
| Get the currently configured sample rate. | |
| void | set_sample_rate (double sample_rate) noexcept override |
| Set the sample rate. | |
| hi::speaker_mapping | input_speaker_mapping () const noexcept override |
| Get the currently configured input speaker mapping. | |
| void | set_input_speaker_mapping (hi::speaker_mapping speaker_mapping) noexcept override |
| Set the input speaker mapping. | |
| std::vector< hi::speaker_mapping > | available_input_speaker_mappings () const noexcept override |
| Speaker mapping that are available in the current configuration. | |
| hi::speaker_mapping | output_speaker_mapping () const noexcept override |
| Get the currently configured output speaker mapping. | |
| void | set_output_speaker_mapping (hi::speaker_mapping speaker_mapping) noexcept override |
| Set the output speaker mapping. | |
| std::vector< hi::speaker_mapping > | available_output_speaker_mappings () const noexcept override |
| Speaker mapping that are available in the current configuration. | |
| bool | supports_format (audio_stream_format const &format) const noexcept |
Static Public Member Functions | |
| static audio_device_id | get_id (IMMDevice *device) noexcept |
| Get the device id for the given win32 audio end-point. | |
Additional Inherited Members | |
Data Fields inherited from v1::audio_device | |
| audio_device_id | id |
| The nonephemeral unique id that for an audio device on the system. | |
A class representing an audio device on the system.
|
overridevirtualnoexcept |
Speaker mapping that are available in the current configuration.
Implements v1::audio_device.
|
overridevirtualnoexcept |
Speaker mapping that are available in the current configuration.
Implements v1::audio_device.
|
overridevirtualnoexcept |
Implements v1::audio_device.
|
overridevirtualnoexcept |
Check if the device is in exclusive mode.
Implements v1::audio_device.
|
staticnoexcept |
Get the device id for the given win32 audio end-point.
|
overridevirtualnoexcept |
Get the currently configured input speaker mapping.
Implements v1::audio_device.
|
overridevirtualnoexcept |
Get a user friendly label of the audio device.
This is a combination of the name of the device and the name of the end-point, plus an icon for the driver architecture.
Implements v1::audio_device.
|
overridevirtualnoexcept |
Get a user friendly name of the audio device.
This is a combination of the name of the device and the name of the end-point.
Implements v1::audio_device.
|
overridevirtualnoexcept |
Get the currently configured output speaker mapping.
Implements v1::audio_device.
|
overridevirtualnoexcept |
Get the currently configured sample rate.
Implements v1::audio_device.
|
overridevirtualnoexcept |
Set the device in exclusive or shared mode.
In shared mode:
In exclusive mode:
| exclusive | True to get exclusive mode, False to get shared mode. |
Implements v1::audio_device.
|
overridevirtualnoexcept |
Set the input speaker mapping.
| speaker_mapping | The input speaker mapping to configure the device to. |
Implements v1::audio_device.
|
overridevirtualnoexcept |
Set the output speaker mapping.
| speaker_mapping | The output speaker mapping to configure the device to. |
Implements v1::audio_device.
|
overridevirtualnoexcept |
Set the sample rate.
| sample_rate | The sample rate to configure the device to. |
Implements v1::audio_device.
|
overridevirtualnoexcept |
Get the current state of the audio device.
Implements v1::audio_device.