mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
AudioCommon: Pass Core::System to AudioCommon functions.
This commit is contained in:
@ -13,23 +13,28 @@
|
||||
|
||||
class Mixer;
|
||||
|
||||
namespace Core
|
||||
{
|
||||
class System;
|
||||
}
|
||||
|
||||
namespace AudioCommon
|
||||
{
|
||||
void InitSoundStream();
|
||||
void PostInitSoundStream();
|
||||
void ShutdownSoundStream();
|
||||
void InitSoundStream(Core::System& system);
|
||||
void PostInitSoundStream(Core::System& system);
|
||||
void ShutdownSoundStream(Core::System& system);
|
||||
std::string GetDefaultSoundBackend();
|
||||
std::vector<std::string> GetSoundBackends();
|
||||
DPL2Quality GetDefaultDPL2Quality();
|
||||
bool SupportsDPL2Decoder(std::string_view backend);
|
||||
bool SupportsLatencyControl(std::string_view backend);
|
||||
bool SupportsVolumeChanges(std::string_view backend);
|
||||
void UpdateSoundStream();
|
||||
void SetSoundStreamRunning(bool running);
|
||||
void SendAIBuffer(const short* samples, unsigned int num_samples);
|
||||
void StartAudioDump();
|
||||
void StopAudioDump();
|
||||
void IncreaseVolume(unsigned short offset);
|
||||
void DecreaseVolume(unsigned short offset);
|
||||
void ToggleMuteVolume();
|
||||
void UpdateSoundStream(Core::System& system);
|
||||
void SetSoundStreamRunning(Core::System& system, bool running);
|
||||
void SendAIBuffer(Core::System& system, const short* samples, unsigned int num_samples);
|
||||
void StartAudioDump(Core::System& system);
|
||||
void StopAudioDump(Core::System& system);
|
||||
void IncreaseVolume(Core::System& system, unsigned short offset);
|
||||
void DecreaseVolume(Core::System& system, unsigned short offset);
|
||||
void ToggleMuteVolume(Core::System& system);
|
||||
} // namespace AudioCommon
|
||||
|
Reference in New Issue
Block a user