Minor updates to the resource_manager example.

This commit is contained in:
David Reid
2020-07-23 17:01:04 +10:00
parent 83178a1dfc
commit 24a1108834
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -2632,7 +2632,7 @@ static ma_result ma_resource_manager_data_source_init_connector(ma_resource_mana
movement overhead.
*/
if (pDataBuffer->data.type == ma_resource_manager_data_buffer_encoding_decoded) {
if (pDataBuffer->data.decoded.format == pResourceManager->config.decodedFormat &&
if (pDataBuffer->data.decoded.format == pResourceManager->config.decodedFormat &&
pDataBuffer->data.decoded.sampleRate == pResourceManager->config.decodedSampleRate) {
pDataSource->dataBuffer.connectorType = ma_resource_manager_data_buffer_connector_buffer;
} else {