Files
dolphin/Source/Core/AudioCommon/AudioCommon.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.2 KiB
C++
Raw Normal View History

// Copyright 2009 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <memory>
2016-12-11 06:11:34 -05:00
#include <string>
#include <string_view>
2016-12-11 06:11:34 -05:00
#include <vector>
2019-03-18 08:22:27 -03:00
#include "AudioCommon/Enums.h"
2014-02-17 05:18:15 -05:00
#include "AudioCommon/SoundStream.h"
2017-06-26 14:41:12 -07:00
class Mixer;
namespace Core
{
class System;
}
2009-03-29 00:48:46 +00:00
namespace AudioCommon
{
void InitSoundStream(Core::System& system);
void PostInitSoundStream(Core::System& system);
void ShutdownSoundStream(Core::System& system);
std::string GetDefaultSoundBackend();
2009-03-29 00:48:46 +00:00
std::vector<std::string> GetSoundBackends();
2019-03-18 08:22:27 -03:00
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);
2019-05-05 23:48:12 +00:00
} // namespace AudioCommon