mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
make precompiled header slimmer under Linux to increase CI and dev-machine build-times make sure unused modules don't compile add unused modules to the VS project to easier keep track of them
35 lines
508 B
C++
35 lines
508 B
C++
#include "stdafx.h"
|
|
#include "rpcs3/Ini.h"
|
|
#include "AudioManager.h"
|
|
|
|
OpenALThread* m_audio_out;
|
|
|
|
AudioManager::AudioManager()
|
|
{
|
|
}
|
|
|
|
void AudioManager::Init()
|
|
{
|
|
if(m_audio_out) return;
|
|
|
|
m_audio_info.Init();
|
|
|
|
switch(Ini.AudioOutMode.GetValue())
|
|
{
|
|
default:
|
|
case 0: m_audio_out = nullptr; break;
|
|
case 1: m_audio_out = new OpenALThread(); break;
|
|
}
|
|
}
|
|
|
|
void AudioManager::Close()
|
|
{
|
|
delete m_audio_out;
|
|
m_audio_out = nullptr;
|
|
}
|
|
|
|
u8 AudioManager::GetState()
|
|
{
|
|
return CELL_AUDIO_OUT_OUTPUT_STATE_ENABLED;
|
|
}
|