rpcsx/rpcs3/Emu/Audio/AudioManager.cpp
Alexandro Sánchez Bach 2c7269e3de PSF Loader improved & issue #126 fixed
* Improved PSF Loader: Now you can get the value of the PARAM.SFO
entries directly with the GetString(key), GetInteger(key) methods.
GameInfo related lines were removed since they have nothing to do with
PSF files.
* cellGame, cellSysutil, and GameViewer are modified because of the PSF
Loader changes.
* Removed unnecessary null pointer checks:
https://github.com/DHrpcs3/rpcs3/issues/126
2014-03-28 05:20:13 +01:00

34 lines
485 B
C++

#include "stdafx.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;
}