mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user