From a17e779a4b9c106ebda32318f87d3106a449e548 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 9 May 2019 17:45:28 +1000 Subject: [PATCH] Documentation: Clarify that a device's config is immutable. --- miniaudio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 0930e277..60a590df 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -2723,7 +2723,8 @@ initialization of other devices. The device's configuration is controlled with pConfig. This allows you to configure the sample format, channel count, sample rate, etc. Before calling ma_device_init(), you will need to initialize a ma_device_config object using ma_device_config_init(). You must set the callback in -the device config. +the device config. Once initialized, the device's config is immutable. If you need to change the +config you will need to initialize a new device. Passing in 0 to any property in pConfig will force the use of a default value. In the case of sample format, channel count, sample rate and channel map it will default to the values used by