Commit f068a793 authored by David Reid's avatar David Reid

Have ma_sound_init_copy() inherit volume smoothing settings.

parent 713093d6
...@@ -75384,10 +75384,11 @@ MA_API ma_result ma_sound_init_copy(ma_engine* pEngine, const ma_sound* pExistin ...@@ -75384,10 +75384,11 @@ MA_API ma_result ma_sound_init_copy(ma_engine* pEngine, const ma_sound* pExistin
} }
config = ma_sound_config_init_2(pEngine); config = ma_sound_config_init_2(pEngine);
config.pDataSource = pSound->pResourceManagerDataSource; config.pDataSource = pSound->pResourceManagerDataSource;
config.flags = flags; config.flags = flags;
config.pInitialAttachment = pGroup; config.pInitialAttachment = pGroup;
config.monoExpansionMode = pExistingSound->engineNode.monoExpansionMode; config.monoExpansionMode = pExistingSound->engineNode.monoExpansionMode;
config.volumeSmoothTimeInPCMFrames = pExistingSound->engineNode.volumeSmoothTimeInPCMFrames;
result = ma_sound_init_from_data_source_internal(pEngine, &config, pSound); result = ma_sound_init_from_data_source_internal(pEngine, &config, pSound);
if (result != MA_SUCCESS) { if (result != MA_SUCCESS) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment