memory-related refactor

This commit is contained in:
MihailRis
2024-05-19 07:09:58 +03:00
parent f47c7d00a2
commit c5f663b7cb
16 changed files with 205 additions and 209 deletions
+2 -3
View File
@@ -136,9 +136,8 @@ namespace audio {
std::vector<uint> freebuffers;
uint maxSources = 256;
ALAudio(ALCdevice* device, ALCcontext* context);
public:
ALAudio(ALCdevice* device, ALCcontext* context);
~ALAudio();
uint getFreeSource();
@@ -164,7 +163,7 @@ namespace audio {
return false;
}
static ALAudio* create();
static std::unique_ptr<ALAudio> create();
};
}