Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
system_volume.hpp
Go to the documentation of this file.
1#pragma once
2
3// System audio volume control — get/set the system output volume.
4// Platform-specific: CoreAudio on macOS, IMMDeviceEnumerator on Windows, ALSA on Linux.
5
6#include <optional>
7
8namespace pulp::audio {
9
12std::optional<float> get_system_volume();
13
16bool set_system_volume(float volume);
17
19std::optional<bool> is_system_muted();
20
22bool set_system_muted(bool muted);
23
24} // namespace pulp::audio
Definition analyzer_provider.hpp:12
std::optional< bool > is_system_muted()
Get the system mute state.
bool set_system_muted(bool muted)
Set the system mute state.
std::optional< float > get_system_volume()
Get the current system output volume (0.0 to 1.0).
bool set_system_volume(float volume)
Set the system output volume (0.0 to 1.0).