dolphin/Source/Core/AudioCommon/AudioCommon.h

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

36 lines
950 B
C
Raw Normal View History

// Copyright 2009 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "AudioCommon/SoundStream.h"
2017-06-26 21:41:12 +00:00
class Mixer;
extern std::unique_ptr<SoundStream> g_sound_stream;
namespace AudioCommon
{
void InitSoundStream();
void ShutdownSoundStream();
std::string GetDefaultSoundBackend();
std::vector<std::string> GetSoundBackends();
bool SupportsDPL2Decoder(std::string_view backend);
bool SupportsLatencyControl(std::string_view backend);
bool SupportsVolumeChanges(std::string_view backend);
2013-01-17 01:16:56 +00:00
void UpdateSoundStream();
void SetSoundStreamRunning(bool running);
2016-07-31 23:14:20 +00:00
void SendAIBuffer(const short* samples, unsigned int num_samples);
2014-10-16 00:03:31 +00:00
void StartAudioDump();
void StopAudioDump();
void IncreaseVolume(unsigned short offset);
void DecreaseVolume(unsigned short offset);
void ToggleMuteVolume();
} // namespace AudioCommon