mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
1a56e9d9e0
Provides the same behavior, but allows passed in strings to be non-allocating in calling code.
36 lines
950 B
C++
36 lines
950 B
C++
// Copyright 2009 Dolphin Emulator Project
|
|
// 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"
|
|
|
|
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);
|
|
void UpdateSoundStream();
|
|
void SetSoundStreamRunning(bool running);
|
|
void SendAIBuffer(const short* samples, unsigned int num_samples);
|
|
void StartAudioDump();
|
|
void StopAudioDump();
|
|
void IncreaseVolume(unsigned short offset);
|
|
void DecreaseVolume(unsigned short offset);
|
|
void ToggleMuteVolume();
|
|
} // namespace AudioCommon
|