Fix a bug when trying to play a sound with inconsistent channel counts.

This bug happens when the channel count of the data source does not
match the channel count of the engine.
This commit is contained in:
David Reid
2021-01-12 17:22:44 +10:00
parent 400aaf582d
commit ff22dc3c87
2 changed files with 50 additions and 36 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ int main(int argc, char** argv)
resourceManagerConfig = ma_resource_manager_config_init();
resourceManagerConfig.decodedFormat = ma_format_f32;
resourceManagerConfig.decodedChannels = 2;
//resourceManagerConfig.decodedChannels = 2;
resourceManagerConfig.decodedSampleRate = 48000;
result = ma_resource_manager_init(&resourceManagerConfig, &resourceManager);
if (result != MA_SUCCESS) {