mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 06:06:18 +00:00
AudioCommon: Use std::string_view with feature querying functions
Provides the same behavior, but allows passed in strings to be non-allocating in calling code.
This commit is contained in:
parent
00ecfb3c59
commit
1a56e9d9e0
2 changed files with 7 additions and 6 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#include "AudioCommon/SoundStream.h"
|
||||
|
@ -20,9 +21,9 @@ void InitSoundStream();
|
|||
void ShutdownSoundStream();
|
||||
std::string GetDefaultSoundBackend();
|
||||
std::vector<std::string> GetSoundBackends();
|
||||
bool SupportsDPL2Decoder(const std::string& backend);
|
||||
bool SupportsLatencyControl(const std::string& backend);
|
||||
bool SupportsVolumeChanges(const std::string& backend);
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue