IAudioVoice: Make ChannelMap's array a std::array

Same thing, but more strongly typed.
This commit is contained in:
Lioncash 2019-08-24 23:16:54 -04:00
parent 7c5a9ab4df
commit 606839dd17
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include <array>
#include <cstddef>
#include <cstdint>
#include <cstring>
@ -24,7 +25,7 @@ enum class AudioChannel {
struct ChannelMap {
unsigned m_channelCount = 0;
AudioChannel m_channels[8] = {};
std::array<AudioChannel, 8> m_channels{};
};
static inline unsigned ChannelCount(AudioChannelSet layout) {