2013-08-08 2 views
2

나는 COD의 일괄 처리 버전에서 작업하고 있습니다 : Black op 2와 나는 단 하나의 문제가 있습니다. 동시에 2 개의 오디오 클립을 재생하려면 한 번에 하나의 오디오 클립 만 재생합니다. 예를 들어, 나는 플레이어가 촬영할 때마다 사운드 효과를냅니다. 총알이 좀비를 치면 다른 음향 효과를냅니다. 이 두 사운드 효과는 동시에 재생할 수 있습니다. 또는 적어도 거기에 있어야합니다. 하지만 작동하지 않습니다. Windows Media Player를 기본 미디어 플레이어로 사용하지 마십시오. 여기에 내 코드 :2 개의 오디오 클립을 오버레이하고 동시에 배치 스크립트로 재생할 방법

: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  

답변

0

내 컴퓨터에있는 음악이 없기 때문에이 작동하지만 내가 입력 믿는다면 내가 테스트 할 수 없습니다 :

call pistol.mp3

call Executioner.ogg

이 작동, 그것을 희망 도와 줬어!

관련 문제