AudioCommon: Make the SoundStream global a unique_ptr

This commit is contained in:
Lioncash
2016-07-31 12:35:08 -04:00
parent 18a669abcc
commit ecc1710676
2 changed files with 28 additions and 35 deletions

View File

@ -4,16 +4,18 @@
#pragma once
#include <memory>
#include "AudioCommon/SoundStream.h"
#include "Common/CommonTypes.h"
class CMixer;
extern SoundStream* g_sound_stream;
extern std::unique_ptr<SoundStream> g_sound_stream;
namespace AudioCommon
{
SoundStream* InitSoundStream();
void InitSoundStream();
void ShutdownSoundStream();
std::vector<std::string> GetSoundBackends();
void UpdateSoundStream();