GUI M8e
This commit is contained in:
parent
a07f94c93d
commit
ecec82c70e
10 changed files with 809 additions and 21 deletions
|
|
@ -142,6 +142,11 @@ struct VolumeState {
|
|||
bool mute = false;
|
||||
};
|
||||
|
||||
struct MeterState {
|
||||
float peak_left = 0.0f;
|
||||
float peak_right = 0.0f;
|
||||
};
|
||||
|
||||
struct MetadataInfo {
|
||||
std::string default_sink_name;
|
||||
std::string default_source_name;
|
||||
|
|
@ -174,6 +179,11 @@ class Client {
|
|||
Status SetNodeVolume(NodeId node, float volume, bool mute);
|
||||
Result<VolumeState> GetNodeVolume(NodeId node) const;
|
||||
|
||||
Status EnsureNodeMeter(NodeId node);
|
||||
Status DisableNodeMeter(NodeId node);
|
||||
Result<MeterState> NodeMeterPeak(NodeId node) const;
|
||||
Result<MeterState> MeterPeak() const;
|
||||
|
||||
Result<Link> CreateLink(PortId output, PortId input, const LinkOptions& options);
|
||||
Result<Link> CreateLinkByName(std::string_view output_node,
|
||||
std::string_view output_port,
|
||||
|
|
@ -203,6 +213,8 @@ class Client {
|
|||
size_t Test_GetPendingAutoLinkCount() const;
|
||||
Status Test_SetNodeVolume(NodeId node, float volume, bool mute);
|
||||
Result<VolumeState> Test_GetNodeVolume(NodeId node) const;
|
||||
Status Test_SetNodeMeterPeak(NodeId node, float left, float right);
|
||||
Status Test_SetMasterMeterPeak(float left, float right);
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue