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

@@ -50,7 +50,7 @@ namespace Nz
SoundBuffer(SoundBuffer&&) = delete;
~SoundBuffer() = default;
const std::shared_ptr<AudioBuffer>& GetBuffer(AudioDevice* device);
const std::shared_ptr<AudioBuffer>& GetAudioBuffer(AudioDevice* device);
inline UInt32 GetDuration() const;
inline AudioFormat GetFormat() const;