I've tried to get this to work too, also to no avail.
Interestingly I've seen in some .sfx files (I don't remember if it was for BF1 or BF2) where they even pull a path from a Stream sound to use as a sound effect.
I've never looked into the .bats before, but in looking right now, I think I have found at least some of the relevant information; this is in the soundmungedir.bat:
Contrast that with the comparatively small entry for the other sound files:
Unfortunately, I do not know this language enough to have a clue what it all really means or if there is a solution that can be fabricated or not. It does seem like there ought to be some way of doing it, since most of the vanilla maps do pull streams from other maps for their music.
Interestingly I've seen in some .sfx files (I don't remember if it was for BF1 or BF2) where they even pull a path from a Stream sound to use as a sound effect.
I've never looked into the .bats before, but in looking right now, I think I have found at least some of the relevant information; this is in the soundmungedir.bat:
Code Select
@rem Munge streams
@rem Localization
@rem Setup the extension of localized stream files (if it's english we'll just use the default extension)
@set LANGVERSION=
@for /F %%A in (%FRONTLINE_LANGVERSION%) do @set LANGVERSION=%%~A
@if /i %LANGVERSION%x==Englishx ( @set LOCALIZEEXT= ) else ( @set LOCALIZEEXT=stm_%LANGVERSION% )
@rem Munge localized stream files
@if /i not %LANGVERSION%x==Englishx @for /R %%A in (*.%LOCALIZEEXT%) do @echo Munging %%~nA%%~xA & @soundflmunge -platform %4 -banklistinput %%A -bankoutput %MUNGEDIR%\%%~nA.str -stream %CHECKDATE% -resample -checkid noabort %SOUNDOPT% %STREAMOPT% 2>>%LOGDIR%\MungeLog.txt 1>>%SOUNDLOGOUT%
@set MUNGE2SUBSTREAMS=0
@if /i %4==xbox @set MUNGE2SUBSTREAMS=1
@if /i %4==pc @set MUNGE2SUBSTREAMS=1
@rem Build up a list of 1 substream streams to munge,
@rem Filtering the localize streams and if on xbox 4 channel streams
@set MUNGESUBSTREAM1=
@for /R %%A in (*.stm) do @if /i %%~xA==.stm ( @if not EXIST %%~dA%%~pA%%~nA.%LOCALIZEEXT% ( @if /i %MUNGE2SUBSTREAMS%==1 ( @if not EXIST %%~dA%%~pA%%~nA.st4 @set MUNGESUBSTREAM1=!MUNGESUBSTREAM1! %%A ) else ( @set MUNGESUBSTREAM1=!MUNGESUBSTREAM1! %%A ) ) )
@rem Munge 1 substream streams
@for %%A in (%MUNGESUBSTREAM1%) do @echo Munging %%~nA%%~xA & @soundflmunge -platform %4 -banklistinput %%A -bankoutput %MUNGEDIR%\ -stream %CHECKDATE% -resample -checkid noabort %SOUNDOPT% %STREAMOPT% 2>>%LOGDIR%\MungeLog.txt 1>>%SOUNDLOGOUT%
@rem Munge 2 substream streams
@if %MUNGE2SUBSTREAMS%==1 @for /R %%A in (*.st4) do @echo Munging %%~nA%%~xA & @soundflmunge -platform %4 -banklistinput %%A -bankoutput %MUNGEDIR%\ -stream %CHECKDATE% -resample -checkid noabort %SOUNDOPT% %STREAMOPT% -substream 2 2>>%LOGDIR%\MungeLog.txt 1>>%SOUNDLOGOUT%
Contrast that with the comparatively small entry for the other sound files:
Code Select
@rem Munge configuration files
@rem *.snd - sound library
@rem *.mus - dynamic music configuration
@rem *.ffx - foley effects
@rem *.tsr - sound regions
@configmunge -sourcedir %SOURCEDIR% -platformdir %PLATFORMDIR% -platform %4 -inputfile *.snd *.mus *.ffx *.tsr -outputdir %MUNGEDIR%\ -hashstrings %CHECKDATE% -continue
@if %SOUNDLOG%x==1x ( @set SOUNDOPT=-verbose & @set SOUNDLOGOUT=%LOGDIR%\SoundBankLog.txt ) else ( @set SOUNDOPT= & @set SOUNDLOGOUT=NUL )
@rem Munge sound banks
@for /R %%A in (*.sfx) do @echo Munging %%~nA%%~xA & @soundflmunge -platform %4 -banklistinput %%A -bankoutput %MUNGEDIR%\ %CHECKDATE% -resample -checkid noabort %SOUNDOPT% %BANKOPT% 2>>%LOGDIR%\MungeLog.txt 1>>%SOUNDLOGOUT%
@for /R %%A in (*.asfx) do @echo Munging %%~nA%%~xA & @soundflmunge -platform %4 -banklistinput %%A -bankoutput %MUNGEDIR%\ %CHECKDATE% -resample -checkid noabort %SOUNDOPT% 2>>%LOGDIR%\MungeLog.txt 1>>%SOUNDLOGOUT%
Unfortunately, I do not know this language enough to have a clue what it all really means or if there is a solution that can be fabricated or not. It does seem like there ought to be some way of doing it, since most of the vanilla maps do pull streams from other maps for their music.