summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-18 03:39:29 +0100
committerLioncash <mathew1800@gmail.com>2019-03-18 14:18:34 +0100
commit26b809549b7cdadd75b55a1799d6cb7a2184b0a1 (patch)
tree621fec1fb83e2ff6f96fd6a76f2787a8dd5eeee7 /src/core/hle/service/am/am.h
parentservice/am: Unstub SetTransparentVolumeRate() (diff)
downloadyuzu-26b809549b7cdadd75b55a1799d6cb7a2184b0a1.tar
yuzu-26b809549b7cdadd75b55a1799d6cb7a2184b0a1.tar.gz
yuzu-26b809549b7cdadd75b55a1799d6cb7a2184b0a1.tar.bz2
yuzu-26b809549b7cdadd75b55a1799d6cb7a2184b0a1.tar.lz
yuzu-26b809549b7cdadd75b55a1799d6cb7a2184b0a1.tar.xz
yuzu-26b809549b7cdadd75b55a1799d6cb7a2184b0a1.tar.zst
yuzu-26b809549b7cdadd75b55a1799d6cb7a2184b0a1.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/am.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index b77a8c96c..565dd8e9e 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -4,6 +4,7 @@
#pragma once
+#include <chrono>
#include <memory>
#include <queue>
#include "core/hle/kernel/writable_event.h"
@@ -81,6 +82,7 @@ private:
void SetExpectedMasterVolume(Kernel::HLERequestContext& ctx);
void GetMainAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx);
void GetLibraryAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx);
+ void ChangeMainAppletMasterVolume(Kernel::HLERequestContext& ctx);
void SetTransparentAudioRate(Kernel::HLERequestContext& ctx);
static constexpr float min_allowed_volume = 0.0f;
@@ -89,6 +91,12 @@ private:
float main_applet_volume{0.25f};
float library_applet_volume{max_allowed_volume};
float transparent_volume_rate{min_allowed_volume};
+
+ // Volume transition fade time in nanoseconds.
+ // e.g. If the main applet volume was 0% and was changed to 50%
+ // with a fade of 50ns, then over the course of 50ns,
+ // the volume will gradually fade up to 50%
+ std::chrono::nanoseconds fade_time_ns{0};
};
class IDisplayController final : public ServiceFramework<IDisplayController> {