Audio: Handle AudioBuffer compatibility

OpenAL buffers are shared between contextes
This commit is contained in:
Jérôme Leclercq
2022-03-17 13:36:09 +01:00
parent 01061380ee
commit 667a4a0c08
10 changed files with 44 additions and 9 deletions

View File

@@ -219,7 +219,7 @@ namespace Nz
Stop();
m_buffer = std::move(buffer);
m_source->SetBuffer(m_buffer->GetBuffer(m_source->GetAudioDevice().get()));
m_source->SetBuffer(m_buffer->GetAudioBuffer(m_source->GetAudioDevice().get()));
}
/*!