mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
cellAudio: move some stuff to cpp
This commit is contained in:
parent
e6b4655142
commit
68466f05b6
8 changed files with 50 additions and 19 deletions
|
|
@ -648,7 +648,8 @@ void cell_audio_thread::operator()()
|
|||
m_backend_failed = true;
|
||||
continue;
|
||||
}
|
||||
else if (m_backend_failed)
|
||||
|
||||
if (m_backend_failed)
|
||||
{
|
||||
cellAudio.warning("Backend recovered");
|
||||
m_backend_failed = false;
|
||||
|
|
@ -904,6 +905,19 @@ void cell_audio_thread::operator()()
|
|||
ringbuffer.reset();
|
||||
}
|
||||
|
||||
audio_port* cell_audio_thread::open_port()
|
||||
{
|
||||
for (u32 i = 0; i < AUDIO_PORT_COUNT; i++)
|
||||
{
|
||||
if (ports[i].state.compare_and_swap_test(audio_port_state::closed, audio_port_state::opened))
|
||||
{
|
||||
return &ports[i];
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template <audio_downmix downmix>
|
||||
void cell_audio_thread::mix(float *out_buffer, s32 offset)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue