mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a bug in mal_device_init().
This commit is contained in:
@@ -11166,7 +11166,7 @@ mal_result mal_device_init(mal_context* pContext, mal_device_type type, mal_devi
|
|||||||
pDevice->type = type;
|
pDevice->type = type;
|
||||||
pDevice->format = config.format;
|
pDevice->format = config.format;
|
||||||
pDevice->channels = config.channels;
|
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->sampleRate = config.sampleRate;
|
||||||
pDevice->bufferSizeInFrames = config.bufferSizeInFrames;
|
pDevice->bufferSizeInFrames = config.bufferSizeInFrames;
|
||||||
pDevice->periods = config.periods;
|
pDevice->periods = config.periods;
|
||||||
|
|||||||
Reference in New Issue
Block a user