mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-11 06:27:41 +00:00
Emitter: Use std::array where applicable
Makes the data more strongly-typed and prevents implicit array->pointer decay
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user