mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Update some more documentation
This time for example code showing 'ma_channel_converter_init' and 'ma_data_converter_init'.
This commit is contained in:
+2
-2
@@ -2681,7 +2681,7 @@ initializing a simple channel converter which converts from mono to stereo.
|
|||||||
NULL, // Output channel map
|
NULL, // Output channel map
|
||||||
ma_channel_mix_mode_default); // The mixing algorithm to use when combining channels.
|
ma_channel_mix_mode_default); // The mixing algorithm to use when combining channels.
|
||||||
|
|
||||||
result = ma_channel_converter_init(&config, &converter);
|
result = ma_channel_converter_init(&config, NULL, &converter);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
// Error.
|
// Error.
|
||||||
}
|
}
|
||||||
@@ -2978,7 +2978,7 @@ object like this:
|
|||||||
);
|
);
|
||||||
|
|
||||||
ma_data_converter converter;
|
ma_data_converter converter;
|
||||||
ma_result result = ma_data_converter_init(&config, &converter);
|
ma_result result = ma_data_converter_init(&config, NULL, &converter);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
// An error occurred...
|
// An error occurred...
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user