| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <string> |
| 7 |
#include <string_view> |
| 8 |
#include <vector> |
| 9 |
|
| 10 |
#include "AudioCommon/Enums.h" |
| 11 |
#include "AudioCommon/SoundStream.h" |
| 12 |
|
| 13 |
class Mixer; |
| 14 |
|
| 15 |
namespace Core |
| 16 |
{ |
| 17 |
class System; |
| 18 |
} |
| 19 |
|
| 20 |
namespace AudioCommon |
| 21 |
{ |
| 22 |
void InitSoundStream(Core::System& system); |
| 23 |
void PostInitSoundStream(Core::System& system); |
| 24 |
void ShutdownSoundStream(Core::System& system); |
| 25 |
std::string GetDefaultSoundBackend(); |
| 26 |
std::vector<std::string> GetSoundBackends(); |
| 27 |
DPL2Quality GetDefaultDPL2Quality(); |
| 28 |
bool SupportsDPL2Decoder(std::string_view backend); |
| 29 |
bool SupportsLatencyControl(std::string_view backend); |
| 30 |
bool SupportsVolumeChanges(std::string_view backend); |
| 31 |
void UpdateSoundStream(Core::System& system); |
| 32 |
void SetSoundStreamRunning(Core::System& system, bool running); |
| 33 |
void SendAIBuffer(Core::System& system, const short* samples, unsigned int num_samples); |
| 34 |
void StartAudioDump(Core::System& system); |
| 35 |
void StopAudioDump(Core::System& system); |
| 36 |
void IncreaseVolume(Core::System& system, unsigned short offset); |
| 37 |
void DecreaseVolume(Core::System& system, unsigned short offset); |
| 38 |
void ToggleMuteVolume(Core::System& system); |
| 39 |
} |