Создаю игрока на карточке 1 и задаю имя файла игрока path/sound
. Я сохраняю автономное приложение для окон. Когда я нажимаю кнопку, чтобы начать. Звук не воспроизводится. Что происходит?Невозможно воспроизвести файл WAV
Это мой код:
Stack:
on preOpenStack
if the platform is "Win32" then
set the dontUseQT to true
set the dontUseQTEffects to true
end if
end preOpenStack
карта:
on mouseUp
set itemDel to slash
put the effective filename of this stack into realpath
delete last item of realpath
if environment() is not "mobile" then
set the fileName of player "player" to (realpath & slash & "assets/sounds/click.wav")
set the currentTime of player "player" to 0
start player "player"
else
put realpath & slash & "assets/sounds/click.wav" into tPath
put "clickbtn" into tChannelName
mobilePlaySoundOnChannel tPath, tChannelName , "now"
end if
end mouseUp
Вы пишете, что вы сохраните автономно в «окна». Что это значит? Вы действительно сохраняете свой автономный режим в 'C: \ Windows'? Это было бы неправильно. – Mark