Move Cubeb AudioStream to FrontendCommon

This way it doesn't need to be built for libretro.
This commit is contained in:
Connor McLaughlin
2020-10-11 12:04:31 +10:00
parent fe25f005c2
commit c89d94c2ff
12 changed files with 29 additions and 50 deletions

View File

@ -266,24 +266,6 @@ void SDLHostInterface::ReleaseHostDisplay()
m_display->SetVSync(true);
}
std::unique_ptr<AudioStream> SDLHostInterface::CreateAudioStream(AudioBackend backend)
{
switch (backend)
{
case AudioBackend::Null:
return AudioStream::CreateNullAudioStream();
case AudioBackend::Cubeb:
return AudioStream::CreateCubebAudioStream();
case AudioBackend::SDL:
return SDLAudioStream::Create();
default:
return nullptr;
}
}
std::optional<CommonHostInterface::HostKeyCode> SDLHostInterface::GetHostKeyCode(const std::string_view key_code) const
{
const std::optional<u32> code = SDLKeyNames::ParseKeyString(key_code);