mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 06:50:57 +01:00
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
// Copyright 2009 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
#include "AudioCommon/Enums.h"
|
|
#include "AudioCommon/SoundStream.h"
|
|
|
|
class Mixer;
|
|
|
|
namespace Core
|
|
{
|
|
class System;
|
|
}
|
|
|
|
namespace AudioCommon
|
|
{
|
|
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(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
|