mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
* 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
34 lines
485 B
C++
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;
|
|
}
|