From f0fff97fd953e959e7716e66e51ae1bf7e309918 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 4 Mar 2018 10:19:47 +1000 Subject: [PATCH] Fix a bug in mal_device_init(). --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index be6ecac0..3641246e 100644 --- a/mini_al.h +++ b/mini_al.h @@ -11166,7 +11166,7 @@ mal_result mal_device_init(mal_context* pContext, mal_device_type type, mal_devi pDevice->type = type; pDevice->format = config.format; pDevice->channels = config.channels; - mal_copy_memory(config.channelMap, config.channelMap, sizeof(config.channelMap[0]) * config.channels); + mal_copy_memory(pDevice->channelMap, config.channelMap, sizeof(config.channelMap[0]) * config.channels); pDevice->sampleRate = config.sampleRate; pDevice->bufferSizeInFrames = config.bufferSizeInFrames; pDevice->periods = config.periods;