Emitter: Use std::array where applicable

Makes the data more strongly-typed and prevents implicit array->pointer
decay
This commit is contained in:
Lioncash
2019-09-07 20:19:47 -04:00
parent 0be0ca2911
commit 29e7d8bc1e
9 changed files with 63 additions and 58 deletions

View File

@@ -1,5 +1,7 @@
#include "amuse/Engine.hpp"
#include <array>
#include "amuse/AudioGroup.hpp"
#include "amuse/AudioGroupData.hpp"
#include "amuse/Common.hpp"
@@ -11,7 +13,7 @@
namespace amuse {
static const float FullLevels[8] = {1.f, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f};
constexpr std::array<float, 8> FullLevels{1.f, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f, 1.f};
Engine::~Engine() {
m_backend.setCallbackInterface(nullptr);