Mintoris Forum

Author Topic: Sound problem  (Read 744 times)

sraffens

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 220
Sound problem
« on: Apr 11, 2017, 03:58 AM »
Sound on space invaders sounds great

I have had some intermittent sound problems so I have been tracking it down

Code: [Select]
const inlineAudioVol = true
const audioLoopStatement = true

playaudio 1,"audio/crazy-escape.wav", false, 0.75, 0.75
'if audioLoopStatement then
  SetAudioLoop 1, on
'else
'  dur=getaudioduration(1)
'  playagain=time()+dur+1000
'Endif
if I comment out
Code: [Select]
const inlineAudioVol = trueI get an error about not able to find the audio file

if I comment out
Code: [Select]
const audioLoopStatement = true also

No error message and no audio played

I don't need these const the code is commented out or deleted