mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-10-09 02:18:27 -04:00
279ce8328f
* macos: add x86_64 Intel support * (feat) Apple Silicon macOS CI building and Setup.pkg documentation (#118) * docs(macos): document Setup.pkg installation Add Apple Silicon macOS CI coverage for runtime configuration, substrate tests, and Setup.pkg packaging alongside the macOS installation instructions. * macos: pin Apple Silicon deployment target * fix(macos): restore Retro Rewind local builds * macos: package universal setup tools * ci: build macOS input expression tests * runtime: Do not force 14.0 minimum anymore new minimum is 12.0 * macos: support older libc++ algorithms * macos: allow undefined MTLLogStateDescriptor for older SDKs * tests: deflake input expression timing window test * build: Fix mac tests * translator: emit null statement after continuation labels for C++17 compatibility * feat(macos): add MetalFX spatial upscaling * Fix automatic music muting on macOS Co-Authored-By: Michael G <10155689+DarthMDev@users.noreply.github.com> Co-Authored-By: Daan Vervacke <23398694+DaanVervacke@users.noreply.github.com> * Address CodeRabbit review comments and integrate upstream TLS cmake * Remove version requirement for running package CI Co-Authored-By: Michael G <10155689+DarthMDev@users.noreply.github.com> * publish-app: fix dependency discovery from build dir, handle spaces in paths, and fail on missing deps * publish-app: preserve subdirectory suffix during @rpath dependency lookup * cmake: synchronize CMAKE_SYSTEM_PROCESSOR with CMAKE_OSX_ARCHITECTURES on macOS * fix rpaths --------- Co-authored-by: DarthM <mgracer48@yahoo.com> Co-authored-by: Michael G <10155689+DarthMDev@users.noreply.github.com> Co-authored-by: Daan Vervacke <23398694+DaanVervacke@users.noreply.github.com> Co-authored-by: patchzyy <64382339+patchzyy@users.noreply.github.com>
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace MusicAttenuation {
|
|
|
|
// Enables the optional external-media integration (Windows media sessions,
|
|
// Core Audio output activity on macOS, or MPRIS over D-Bus on Linux).
|
|
// The monitor is started lazily the first time
|
|
// this is enabled.
|
|
void SetEnabled(bool enabled) noexcept;
|
|
void SetMusicVolume(float volume) noexcept;
|
|
void SetSoundEffectsVolume(float volume) noexcept;
|
|
void SetUiVolume(float volume) noexcept;
|
|
void SetVoicesVolume(float volume) noexcept;
|
|
bool IsExternalMediaPlaying() noexcept;
|
|
bool IsMediaControlAvailable() noexcept;
|
|
bool IsMediaControlInitializationComplete() noexcept;
|
|
|
|
// Called from the guest scheduler/audio path. This applies state changes to
|
|
// the live SoundPlayer buses, so changing a category or entering/leaving
|
|
// attenuation never requires a scene or race restart.
|
|
void TickGuest() noexcept;
|
|
|
|
// Accurate native replacement for nw4r::snd::SoundPlayer::SetVolume. Only
|
|
// the category multipliers are applied here; the game's requested bus volume
|
|
// remains the base value.
|
|
void SetSoundPlayerVolume(uint32_t soundPlayer, float requestedVolume);
|
|
|
|
} // namespace MusicAttenuation
|