mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update
This commit is contained in:
parent
97539aa9f4
commit
58661a94a6
7 changed files with 349 additions and 138 deletions
|
|
@ -5,6 +5,10 @@
|
|||
#include "ALAudio.h"
|
||||
#include "NoAudio.h"
|
||||
|
||||
namespace audio {
|
||||
extern Backend* backend;
|
||||
}
|
||||
|
||||
audio::Backend* audio::backend = nullptr;
|
||||
|
||||
void audio::initialize(bool enabled) {
|
||||
|
|
@ -26,6 +30,10 @@ void audio::setListener(
|
|||
audio::backend->setListener(position, velocity, lookAt, up);
|
||||
}
|
||||
|
||||
void audio::update(double delta) {
|
||||
audio::backend->update(delta);
|
||||
}
|
||||
|
||||
void audio::close() {
|
||||
delete audio::backend;
|
||||
audio::backend = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue