diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2019-06-16 19:06:33 +1000 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2019-06-16 19:06:33 +1000 |
commit | 335127af6921ce298a6dd63682895768c6b06e86 (patch) | |
tree | 0a505fec2c232dec0945fc02159eecc9c3af087e /src/audio_core/stream.h | |
parent | c0e7b91145d944b9fcd82605cccac64298d02c4f (diff) |
Impl'd IsUserAccountSwitchLocked, SetAudioOutVolume, GetAudioOutVolume & Partial impl of GetAccumulatedSuspendedTickChangedEvent
IPC-100 was changed to InitializeApplicationInfoOld instead of InitializeApplicationInfo. IPC-150 makes an indentical call to IPC-100 however does extra processing. They should not have the same name as it's quite confusing to debug.
Diffstat (limited to 'src/audio_core/stream.h')
-rw-r--r-- | src/audio_core/stream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audio_core/stream.h b/src/audio_core/stream.h index 05071243b..97458c80a 100644 --- a/src/audio_core/stream.h +++ b/src/audio_core/stream.h @@ -61,6 +61,12 @@ public: /// Returns a vector of recently released buffers specified by tag std::vector<Buffer::Tag> GetTagsAndReleaseBuffers(std::size_t max_count); + void SetVolume(float volume); + + float GetVolume() const { + return game_volume; + } + /// Returns true if the stream is currently playing bool IsPlaying() const { return state == State::Playing; @@ -103,6 +109,7 @@ private: SinkStream& sink_stream; ///< Output sink for the stream Core::Timing::CoreTiming& core_timing; ///< Core timing instance. std::string name; ///< Name of the stream, must be unique + float game_volume = 1.0f; ///< The volume the game currently has set }; using StreamPtr = std::shared_ptr<Stream>; |