mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Have ma_sound_init_copy() inherit volume smoothing settings.
This commit is contained in:
@@ -75388,6 +75388,7 @@ MA_API ma_result ma_sound_init_copy(ma_engine* pEngine, const ma_sound* pExistin
|
|||||||
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user