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.

39 lines
1.0 KiB
C++
Raw Normal View History

// Copyright 2009 Dolphin Emulator Project
2015-05-18 01:08:10 +02:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#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;
extern std::unique_ptr<SoundStream> g_sound_stream;
2009-03-29 00:48:46 +00:00
namespace AudioCommon
{
void InitSoundStream();
2021-03-22 00:06:44 +01:00
void PostInitSoundStream();
2009-03-29 00:48:46 +00:00
void ShutdownSoundStream();
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);
2013-01-16 20:16:56 -05:00
void UpdateSoundStream();
void SetSoundStreamRunning(bool running);
2016-07-31 19:14:20 -04:00
void SendAIBuffer(const short* samples, unsigned int num_samples);
2014-10-15 20:03:31 -04:00
void StartAudioDump();
void StopAudioDump();
void IncreaseVolume(unsigned short offset);
void DecreaseVolume(unsigned short offset);
void ToggleMuteVolume();
2019-05-05 23:48:12 +00:00
} // namespace AudioCommon