gpt4 book ai didi

audio - 如何使用批处理脚本覆盖2个音频剪辑并使它们同时播放

转载 作者:行者123 更新时间:2023-12-02 22:41:20 26 4
gpt4 key购买 nike

我正在使用COD:Black ops 2的批处理版本,并且我只有一个问题。当我想同时播放2个音频片段时,它一次播放一个音频片段。例如,我每次射击时都会发出声音效果。如果子弹击中了僵尸,它还会发出另一种声音效果。这两种音效都可以同时播放。或至少应该如此。但它不起作用。我没有使用Windows Media Player作为我的默认媒体播放器。这是我的代码:

:shoot
set f%bullet%=Û
if %times% == 0 goto shot_sound
set /a times=%times% + 1

if %face% == 1 set /a bullet=%bullet% - 20
if %face% == 2 set /a bullet=%bullet% + 20
if %face% == 3 set /a bullet=%bullet% - 1
if %face% == 4 set /a bullet=%bullet% + 1
if %bullet% == %p2% goto hit2
if %bullet% == %p3% goto hit3
if %bullet% == %p4% goto hit4
if %bullet% == %p5% goto hit5
if %bullet% == %p6% goto hit6
if %bullet% == %p7% goto hit7
goto play

:shot_sound
set /a times=%times% + 1
if %n1% == gay_pistol start /min c:\Users\%username%\Desktop\zombies\pistol.mp3
if %n1% == Executioner start /min c:\Users\%username%\Desktop\zombies\Executioner.ogg
goto play




:hit2
start /min c:\Users\%USERNAME%\Desktop\zombies\zombie01.wma
if %hp2% leq 0 goto kill1
if %knife% == %p2% set /a hp2=%hp2% - %knife_power%
if %bullet% == %p2% set /a hp2=%hp2% - %power%
goto play

最佳答案

我无法测试是否可行,因为我的计算机上没有音乐,但我相信您可以输入:
call pistol.mp3

call Executioner.ogg
会工作,希望对您有所帮助!

关于audio - 如何使用批处理脚本覆盖2个音频剪辑并使它们同时播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18130519/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com