mirror of
https://github.com/mackron/miniaudio.git
synced 2026-06-29 17:42:42 +02:00
Fix an error in ma_data_source_get_channel_map().
This commit is contained in:
+1
-1
@@ -69734,7 +69734,7 @@ MA_API ma_result ma_data_source_get_channel_map(ma_data_source* pDataSource, ma_
|
|||||||
/* Most likely this just means MA_DATA_SOURCE_GET_CHANNEL_MAP is not implemented which means it's wants to use the default channel map. Just assume that. */
|
/* Most likely this just means MA_DATA_SOURCE_GET_CHANNEL_MAP is not implemented which means it's wants to use the default channel map. Just assume that. */
|
||||||
ma_data_source_data_format dataFormat;
|
ma_data_source_data_format dataFormat;
|
||||||
|
|
||||||
result = ma_data_source_prop(pDataSource, MA_DATA_SOURCE_GET_DATA_FORMAT, pQueriedChannelMap);
|
result = ma_data_source_prop(pDataSource, MA_DATA_SOURCE_GET_DATA_FORMAT, &dataFormat);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
return result; /* Do not know the channel count. Cannot derived a default channel map. */
|
return result; /* Do not know the channel count. Cannot derived a default channel map. */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user