diff options
| author | 2018-08-04 17:45:14 -0400 | |
|---|---|---|
| committer | 2018-08-04 21:54:30 -0400 | |
| commit | b46df98e935552ea48ed86360e8c8b34b294982d (patch) | |
| tree | 95a17bc97a704c5e3dfb41d11c3579b88141dbe2 /src/audio_core | |
| parent | audio_core: Use s16 where possible for audio samples. (diff) | |
| download | yuzu-b46df98e935552ea48ed86360e8c8b34b294982d.tar.gz yuzu-b46df98e935552ea48ed86360e8c8b34b294982d.tar.xz yuzu-b46df98e935552ea48ed86360e8c8b34b294982d.zip | |
audio_core: Implement audren_u audio playback.
Diffstat (limited to 'src/audio_core')
| -rw-r--r-- | src/audio_core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/audio_core/audio_renderer.cpp | 234 | ||||
| -rw-r--r-- | src/audio_core/audio_renderer.h | 206 |
3 files changed, 442 insertions, 0 deletions
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt index 05a61b5cd..827ab0ac7 100644 --- a/src/audio_core/CMakeLists.txt +++ b/src/audio_core/CMakeLists.txt | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | add_library(audio_core STATIC | 1 | add_library(audio_core STATIC |
| 2 | audio_out.cpp | 2 | audio_out.cpp |
| 3 | audio_out.h | 3 | audio_out.h |
| 4 | audio_renderer.cpp | ||
| 5 | audio_renderer.h | ||
| 4 | buffer.h | 6 | buffer.h |
| 5 | cubeb_sink.cpp | 7 | cubeb_sink.cpp |
| 6 | cubeb_sink.h | 8 | cubeb_sink.h |
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp new file mode 100644 index 000000000..282f345c5 --- /dev/null +++ b/src/audio_core/audio_renderer.cpp | |||
| @@ -0,0 +1,234 @@ | |||
| 1 | // Copyright 2018 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "audio_core/audio_renderer.h" | ||
| 6 | #include "common/assert.h" | ||
| 7 | #include "common/logging/log.h" | ||
| 8 | #include "core/memory.h" | ||
| 9 | |||
| 10 | namespace AudioCore { | ||
| 11 | |||
| 12 | constexpr u32 STREAM_SAMPLE_RATE{48000}; | ||
| 13 | constexpr u32 STREAM_NUM_CHANNELS{2}; | ||
| 14 | |||
| 15 | AudioRenderer::AudioRenderer(AudioRendererParameter params, | ||
| 16 | Kernel::SharedPtr<Kernel::Event> buffer_event) | ||
| 17 | : worker_params{params}, buffer_event{buffer_event}, voices(params.voice_count) { | ||
| 18 | |||
| 19 | audio_core = std::make_unique<AudioCore::AudioOut>(); | ||
| 20 | stream = audio_core->OpenStream(STREAM_SAMPLE_RATE, STREAM_NUM_CHANNELS, "AudioRenderer", | ||
| 21 | [=]() { buffer_event->Signal(); }); | ||
| 22 | audio_core->StartStream(stream); | ||
| 23 | |||
| 24 | QueueMixedBuffer(0); | ||
| 25 | QueueMixedBuffer(1); | ||
| 26 | QueueMixedBuffer(2); | ||
| 27 | } | ||
| 28 | |||
| 29 | std::vector<u8> AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_params) { | ||
| 30 | // Copy UpdateDataHeader struct | ||
| 31 | UpdateDataHeader config{}; | ||
| 32 | std::memcpy(&config, input_params.data(), sizeof(UpdateDataHeader)); | ||
| 33 | u32 memory_pool_count = worker_params.effect_count + (worker_params.voice_count * 4); | ||
| 34 | |||
| 35 | // Copy MemoryPoolInfo structs | ||
| 36 | std::vector<MemoryPoolInfo> mem_pool_info(memory_pool_count); | ||
| 37 | std::memcpy(mem_pool_info.data(), | ||
| 38 | input_params.data() + sizeof(UpdateDataHeader) + config.behavior_size, | ||
| 39 | memory_pool_count * sizeof(MemoryPoolInfo)); | ||
| 40 | |||
| 41 | // Copy VoiceInfo structs | ||
| 42 | size_t offset{sizeof(UpdateDataHeader) + config.behavior_size + config.memory_pools_size + | ||
| 43 | config.voice_resource_size}; | ||
| 44 | for (auto& voice : voices) { | ||
| 45 | std::memcpy(&voice.Info(), input_params.data() + offset, sizeof(VoiceInfo)); | ||
| 46 | offset += sizeof(VoiceInfo); | ||
| 47 | } | ||
| 48 | |||
| 49 | // Update voices | ||
| 50 | for (auto& voice : voices) { | ||
| 51 | voice.UpdateState(); | ||
| 52 | if (!voice.GetInfo().is_in_use) { | ||
| 53 | continue; | ||
| 54 | } | ||
| 55 | if (voice.GetInfo().is_new) { | ||
| 56 | voice.SetWaveIndex(voice.GetInfo().wave_buffer_head); | ||
| 57 | } | ||
| 58 | } | ||
| 59 | |||
| 60 | // Update memory pool state | ||
| 61 | std::vector<MemoryPoolEntry> memory_pool(memory_pool_count); | ||
| 62 | for (size_t index = 0; index < memory_pool.size(); ++index) { | ||
| 63 | if (mem_pool_info[index].pool_state == MemoryPoolStates::RequestAttach) { | ||
| 64 | memory_pool[index].state = MemoryPoolStates::Attached; | ||
| 65 | } else if (mem_pool_info[index].pool_state == MemoryPoolStates::RequestDetach) { | ||
| 66 | memory_pool[index].state = MemoryPoolStates::Detached; | ||
| 67 | } | ||
| 68 | } | ||
| 69 | |||
| 70 | // Release previous buffers and queue next ones for playback | ||
| 71 | ReleaseAndQueueBuffers(); | ||
| 72 | |||
| 73 | // Copy output header | ||
| 74 | UpdateDataHeader response_data{worker_params}; | ||
| 75 | std::vector<u8> output_params(response_data.total_size); | ||
| 76 | std::memcpy(output_params.data(), &response_data, sizeof(UpdateDataHeader)); | ||
| 77 | |||
| 78 | // Copy output memory pool entries | ||
| 79 | std::memcpy(output_params.data() + sizeof(UpdateDataHeader), memory_pool.data(), | ||
| 80 | response_data.memory_pools_size); | ||
| 81 | |||
| 82 | // Copy output voice status | ||
| 83 | size_t voice_out_status_offset{sizeof(UpdateDataHeader) + response_data.memory_pools_size}; | ||
| 84 | for (const auto& voice : voices) { | ||
| 85 | std::memcpy(output_params.data() + voice_out_status_offset, &voice.GetOutStatus(), | ||
| 86 | sizeof(VoiceOutStatus)); | ||
| 87 | voice_out_status_offset += sizeof(VoiceOutStatus); | ||
| 88 | } | ||
| 89 | |||
| 90 | return output_params; | ||
| 91 | } | ||
| 92 | |||
| 93 | void AudioRenderer::VoiceState::SetWaveIndex(size_t index) { | ||
| 94 | wave_index = index & 3; | ||
| 95 | is_refresh_pending = true; | ||
| 96 | } | ||
| 97 | |||
| 98 | std::vector<s16> AudioRenderer::VoiceState::DequeueSamples(size_t sample_count) { | ||
| 99 | if (!IsPlaying()) { | ||
| 100 | return {}; | ||
| 101 | } | ||
| 102 | |||
| 103 | if (is_refresh_pending) { | ||
| 104 | RefreshBuffer(); | ||
| 105 | } | ||
| 106 | |||
| 107 | const size_t max_size{samples.size() - offset}; | ||
| 108 | const size_t dequeue_offset{offset}; | ||
| 109 | size_t size{sample_count * STREAM_NUM_CHANNELS}; | ||
| 110 | if (size > max_size) { | ||
| 111 | size = max_size; | ||
| 112 | } | ||
| 113 | |||
| 114 | out_status.played_sample_count += size / STREAM_NUM_CHANNELS; | ||
| 115 | offset += size; | ||
| 116 | |||
| 117 | const auto& wave_buffer{info.wave_buffer[wave_index]}; | ||
| 118 | if (offset == samples.size()) { | ||
| 119 | offset = 0; | ||
| 120 | |||
| 121 | if (!wave_buffer.is_looping) { | ||
| 122 | SetWaveIndex(wave_index + 1); | ||
| 123 | } | ||
| 124 | |||
| 125 | out_status.wave_buffer_consumed++; | ||
| 126 | |||
| 127 | if (wave_buffer.end_of_stream) { | ||
| 128 | info.play_state = PlayState::Paused; | ||
| 129 | } | ||
| 130 | } | ||
| 131 | |||
| 132 | return {samples.begin() + dequeue_offset, samples.begin() + dequeue_offset + size}; | ||
| 133 | } | ||
| 134 | |||
| 135 | void AudioRenderer::VoiceState::UpdateState() { | ||
| 136 | if (is_in_use && !info.is_in_use) { | ||
| 137 | // No longer in use, reset state | ||
| 138 | is_refresh_pending = true; | ||
| 139 | wave_index = 0; | ||
| 140 | offset = 0; | ||
| 141 | out_status = {}; | ||
| 142 | } | ||
| 143 | is_in_use = info.is_in_use; | ||
| 144 | } | ||
| 145 | |||
| 146 | void AudioRenderer::VoiceState::RefreshBuffer() { | ||
| 147 | std::vector<s16> new_samples(info.wave_buffer[wave_index].buffer_sz / sizeof(s16)); | ||
| 148 | Memory::ReadBlock(info.wave_buffer[wave_index].buffer_addr, new_samples.data(), | ||
| 149 | info.wave_buffer[wave_index].buffer_sz); | ||
| 150 | |||
| 151 | switch (static_cast<Codec::PcmFormat>(info.sample_format)) { | ||
| 152 | case Codec::PcmFormat::Int16: { | ||
| 153 | // PCM16 is played as-is | ||
| 154 | break; | ||
| 155 | } | ||
| 156 | case Codec::PcmFormat::Adpcm: { | ||
| 157 | // Decode ADPCM to PCM16 | ||
| 158 | Codec::ADPCM_Coeff coeffs; | ||
| 159 | Memory::ReadBlock(info.additional_params_addr, coeffs.data(), sizeof(Codec::ADPCM_Coeff)); | ||
| 160 | new_samples = Codec::DecodeADPCM(reinterpret_cast<u8*>(new_samples.data()), | ||
| 161 | new_samples.size() * sizeof(s16), coeffs, adpcm_state); | ||
| 162 | break; | ||
| 163 | } | ||
| 164 | default: | ||
| 165 | LOG_CRITICAL(Audio, "Unimplemented sample_format={}", info.sample_format); | ||
| 166 | UNREACHABLE(); | ||
| 167 | break; | ||
| 168 | } | ||
| 169 | |||
| 170 | switch (info.channel_count) { | ||
| 171 | case 1: | ||
| 172 | // 1 channel is upsampled to 2 channel | ||
| 173 | samples.resize(new_samples.size() * 2); | ||
| 174 | for (size_t index = 0; index < new_samples.size(); ++index) { | ||
| 175 | samples[index * 2] = new_samples[index]; | ||
| 176 | samples[index * 2 + 1] = new_samples[index]; | ||
| 177 | } | ||
| 178 | break; | ||
| 179 | case 2: { | ||
| 180 | // 2 channel is played as is | ||
| 181 | samples = std::move(new_samples); | ||
| 182 | break; | ||
| 183 | } | ||
| 184 | default: | ||
| 185 | LOG_CRITICAL(Audio, "Unimplemented channel_count={}", info.channel_count); | ||
| 186 | UNREACHABLE(); | ||
| 187 | break; | ||
| 188 | } | ||
| 189 | |||
| 190 | is_refresh_pending = false; | ||
| 191 | } | ||
| 192 | |||
| 193 | static constexpr s16 ClampToS16(s32 value) { | ||
| 194 | return static_cast<s16>(std::clamp(value, -32768, 32767)); | ||
| 195 | } | ||
| 196 | |||
| 197 | void AudioRenderer::QueueMixedBuffer(Buffer::Tag tag) { | ||
| 198 | constexpr size_t BUFFER_SIZE{512}; | ||
| 199 | std::vector<s16> buffer(BUFFER_SIZE * stream->GetNumChannels()); | ||
| 200 | |||
| 201 | for (auto& voice : voices) { | ||
| 202 | if (!voice.IsPlaying()) { | ||
| 203 | continue; | ||
| 204 | } | ||
| 205 | |||
| 206 | size_t offset{}; | ||
| 207 | s64 samples_remaining{BUFFER_SIZE}; | ||
| 208 | while (samples_remaining > 0) { | ||
| 209 | const std::vector<s16> samples{voice.DequeueSamples(samples_remaining)}; | ||
| 210 | |||
| 211 | if (samples.empty()) { | ||
| 212 | break; | ||
| 213 | } | ||
| 214 | |||
| 215 | samples_remaining -= samples.size(); | ||
| 216 | |||
| 217 | for (const auto& sample : samples) { | ||
| 218 | const s32 buffer_sample{buffer[offset]}; | ||
| 219 | buffer[offset++] = | ||
| 220 | ClampToS16(buffer_sample + static_cast<s32>(sample * voice.GetInfo().volume)); | ||
| 221 | } | ||
| 222 | } | ||
| 223 | } | ||
| 224 | audio_core->QueueBuffer(stream, tag, std::move(buffer)); | ||
| 225 | } | ||
| 226 | |||
| 227 | void AudioRenderer::ReleaseAndQueueBuffers() { | ||
| 228 | const auto released_buffers{audio_core->GetTagsAndReleaseBuffers(stream, 2)}; | ||
| 229 | for (const auto& tag : released_buffers) { | ||
| 230 | QueueMixedBuffer(tag); | ||
| 231 | } | ||
| 232 | } | ||
| 233 | |||
| 234 | } // namespace AudioCore | ||
diff --git a/src/audio_core/audio_renderer.h b/src/audio_core/audio_renderer.h new file mode 100644 index 000000000..6950a4681 --- /dev/null +++ b/src/audio_core/audio_renderer.h | |||
| @@ -0,0 +1,206 @@ | |||
| 1 | // Copyright 2018 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <array> | ||
| 8 | #include <memory> | ||
| 9 | #include <vector> | ||
| 10 | |||
| 11 | #include "audio_core/audio_out.h" | ||
| 12 | #include "audio_core/codec.h" | ||
| 13 | #include "audio_core/stream.h" | ||
| 14 | #include "common/common_types.h" | ||
| 15 | #include "common/swap.h" | ||
| 16 | #include "core/hle/kernel/event.h" | ||
| 17 | |||
| 18 | namespace AudioCore { | ||
| 19 | |||
| 20 | enum class PlayState : u8 { | ||
| 21 | Started = 0, | ||
| 22 | Stopped = 1, | ||
| 23 | Paused = 2, | ||
| 24 | }; | ||
| 25 | |||
| 26 | struct AudioRendererParameter { | ||
| 27 | u32_le sample_rate; | ||
| 28 | u32_le sample_count; | ||
| 29 | u32_le unknown_8; | ||
| 30 | u32_le unknown_c; | ||
| 31 | u32_le voice_count; | ||
| 32 | u32_le sink_count; | ||
| 33 | u32_le effect_count; | ||
| 34 | u32_le unknown_1c; | ||
| 35 | u8 unknown_20; | ||
| 36 | INSERT_PADDING_BYTES(3); | ||
| 37 | u32_le splitter_count; | ||
| 38 | u32_le unknown_2c; | ||
| 39 | INSERT_PADDING_WORDS(1); | ||
| 40 | u32_le revision; | ||
| 41 | }; | ||
| 42 | static_assert(sizeof(AudioRendererParameter) == 52, "AudioRendererParameter is an invalid size"); | ||
| 43 | |||
| 44 | enum class MemoryPoolStates : u32 { // Should be LE | ||
| 45 | Invalid = 0x0, | ||
| 46 | Unknown = 0x1, | ||
| 47 | RequestDetach = 0x2, | ||
| 48 | Detached = 0x3, | ||
| 49 | RequestAttach = 0x4, | ||
| 50 | Attached = 0x5, | ||
| 51 | Released = 0x6, | ||
| 52 | }; | ||
| 53 | |||
| 54 | struct MemoryPoolEntry { | ||
| 55 | MemoryPoolStates state; | ||
| 56 | u32_le unknown_4; | ||
| 57 | u32_le unknown_8; | ||
| 58 | u32_le unknown_c; | ||
| 59 | }; | ||
| 60 | static_assert(sizeof(MemoryPoolEntry) == 0x10, "MemoryPoolEntry has wrong size"); | ||
| 61 | |||
| 62 | struct MemoryPoolInfo { | ||
| 63 | u64_le pool_address; | ||
| 64 | u64_le pool_size; | ||
| 65 | MemoryPoolStates pool_state; | ||
| 66 | INSERT_PADDING_WORDS(3); // Unknown | ||
| 67 | }; | ||
| 68 | static_assert(sizeof(MemoryPoolInfo) == 0x20, "MemoryPoolInfo has wrong size"); | ||
| 69 | struct BiquadFilter { | ||
| 70 | u8 enable; | ||
| 71 | INSERT_PADDING_BYTES(1); | ||
| 72 | std::array<s16_le, 3> numerator; | ||
| 73 | std::array<s16_le, 2> denominator; | ||
| 74 | }; | ||
| 75 | static_assert(sizeof(BiquadFilter) == 0xc, "BiquadFilter has wrong size"); | ||
| 76 | |||
| 77 | struct WaveBuffer { | ||
| 78 | u64_le buffer_addr; | ||
| 79 | u64_le buffer_sz; | ||
| 80 | s32_le start_sample_offset; | ||
| 81 | s32_le end_sample_offset; | ||
| 82 | u8 is_looping; | ||
| 83 | u8 end_of_stream; | ||
| 84 | u8 sent_to_server; | ||
| 85 | INSERT_PADDING_BYTES(5); | ||
| 86 | u64 context_addr; | ||
| 87 | u64 context_sz; | ||
| 88 | INSERT_PADDING_BYTES(8); | ||
| 89 | }; | ||
| 90 | static_assert(sizeof(WaveBuffer) == 0x38, "WaveBuffer has wrong size"); | ||
| 91 | |||
| 92 | struct VoiceInfo { | ||
| 93 | u32_le id; | ||
| 94 | u32_le node_id; | ||
| 95 | u8 is_new; | ||
| 96 | u8 is_in_use; | ||
| 97 | PlayState play_state; | ||
| 98 | u8 sample_format; | ||
| 99 | u32_le sample_rate; | ||
| 100 | u32_le priority; | ||
| 101 | u32_le sorting_order; | ||
| 102 | u32_le channel_count; | ||
| 103 | float_le pitch; | ||
| 104 | float_le volume; | ||
| 105 | std::array<BiquadFilter, 2> biquad_filter; | ||
| 106 | u32_le wave_buffer_count; | ||
| 107 | u32_le wave_buffer_head; | ||
| 108 | INSERT_PADDING_WORDS(1); | ||
| 109 | u64_le additional_params_addr; | ||
| 110 | u64_le additional_params_sz; | ||
| 111 | u32_le mix_id; | ||
| 112 | u32_le splitter_info_id; | ||
| 113 | std::array<WaveBuffer, 4> wave_buffer; | ||
| 114 | std::array<u32_le, 6> voice_channel_resource_ids; | ||
| 115 | INSERT_PADDING_BYTES(24); | ||
| 116 | }; | ||
| 117 | static_assert(sizeof(VoiceInfo) == 0x170, "VoiceInfo is wrong size"); | ||
| 118 | |||
| 119 | struct VoiceOutStatus { | ||
| 120 | u64_le played_sample_count; | ||
| 121 | u32_le wave_buffer_consumed; | ||
| 122 | u32_le voice_drops_count; | ||
| 123 | }; | ||
| 124 | static_assert(sizeof(VoiceOutStatus) == 0x10, "VoiceOutStatus has wrong size"); | ||
| 125 | |||
| 126 | struct UpdateDataHeader { | ||
| 127 | UpdateDataHeader() {} | ||
| 128 | |||
| 129 | explicit UpdateDataHeader(const AudioRendererParameter& config) { | ||
| 130 | revision = Common::MakeMagic('R', 'E', 'V', '4'); // 5.1.0 Revision | ||
| 131 | behavior_size = 0xb0; | ||
| 132 | memory_pools_size = (config.effect_count + (config.voice_count * 4)) * 0x10; | ||
| 133 | voices_size = config.voice_count * 0x10; | ||
| 134 | voice_resource_size = 0x0; | ||
| 135 | effects_size = config.effect_count * 0x10; | ||
| 136 | mixes_size = 0x0; | ||
| 137 | sinks_size = config.sink_count * 0x20; | ||
| 138 | performance_manager_size = 0x10; | ||
| 139 | total_size = sizeof(UpdateDataHeader) + behavior_size + memory_pools_size + voices_size + | ||
| 140 | effects_size + sinks_size + performance_manager_size; | ||
| 141 | } | ||
| 142 | |||
| 143 | u32_le revision; | ||
| 144 | u32_le behavior_size; | ||
| 145 | u32_le memory_pools_size; | ||
| 146 | u32_le voices_size; | ||
| 147 | u32_le voice_resource_size; | ||
| 148 | u32_le effects_size; | ||
| 149 | u32_le mixes_size; | ||
| 150 | u32_le sinks_size; | ||
| 151 | u32_le performance_manager_size; | ||
| 152 | INSERT_PADDING_WORDS(6); | ||
| 153 | u32_le total_size; | ||
| 154 | }; | ||
| 155 | static_assert(sizeof(UpdateDataHeader) == 0x40, "UpdateDataHeader has wrong size"); | ||
| 156 | |||
| 157 | class AudioRenderer { | ||
| 158 | public: | ||
| 159 | AudioRenderer(AudioRendererParameter params, Kernel::SharedPtr<Kernel::Event> buffer_event); | ||
| 160 | std::vector<u8> UpdateAudioRenderer(const std::vector<u8>& input_params); | ||
| 161 | void QueueMixedBuffer(Buffer::Tag tag); | ||
| 162 | void ReleaseAndQueueBuffers(); | ||
| 163 | |||
| 164 | private: | ||
| 165 | class VoiceState { | ||
| 166 | public: | ||
| 167 | bool IsPlaying() const { | ||
| 168 | return is_in_use && info.play_state == PlayState::Started; | ||
| 169 | } | ||
| 170 | |||
| 171 | const VoiceOutStatus& GetOutStatus() const { | ||
| 172 | return out_status; | ||
| 173 | } | ||
| 174 | |||
| 175 | const VoiceInfo& GetInfo() const { | ||
| 176 | return info; | ||
| 177 | } | ||
| 178 | |||
| 179 | VoiceInfo& Info() { | ||
| 180 | return info; | ||
| 181 | } | ||
| 182 | |||
| 183 | void SetWaveIndex(size_t index); | ||
| 184 | std::vector<s16> DequeueSamples(size_t sample_count); | ||
| 185 | void UpdateState(); | ||
| 186 | void RefreshBuffer(); | ||
| 187 | |||
| 188 | private: | ||
| 189 | bool is_in_use{}; | ||
| 190 | bool is_refresh_pending{}; | ||
| 191 | size_t wave_index{}; | ||
| 192 | size_t offset{}; | ||
| 193 | Codec::ADPCMState adpcm_state{}; | ||
| 194 | std::vector<s16> samples; | ||
| 195 | VoiceOutStatus out_status{}; | ||
| 196 | VoiceInfo info{}; | ||
| 197 | }; | ||
| 198 | |||
| 199 | AudioRendererParameter worker_params; | ||
| 200 | Kernel::SharedPtr<Kernel::Event> buffer_event; | ||
| 201 | std::vector<VoiceState> voices; | ||
| 202 | std::unique_ptr<AudioCore::AudioOut> audio_core; | ||
| 203 | AudioCore::StreamPtr stream; | ||
| 204 | }; | ||
| 205 | |||
| 206 | } // namespace AudioCore | ||