no audio when playing? [solved]

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

no audio when playing? [solved]

Post by SteveTX » Thu Jul 18, 2013 11:01 pm

I have mp3 files in my theResourcesPath folder. I get notified by debugIt below that the file is indeed playing but I am not getting any audio. Am I missing something?

Code: Select all

   put theResourcesPath & theFile into tSoundFile
   if the platform is "android" or the platform is "iphone" then
      if there is a file tSoundFile then
         set the playLoudness to 100
         play tSoundFile, false
         if the result is "could not play sound" then 
            debugIt ("unable to play sound file " & tSoundFile)
         else
            debugIt ("playing " & theSound & " sound: " & tSoundFile)
         end if
      else
         debugIt ("couldn't find file " & tSoundFile)
      end if
   end if
Last edited by SteveTX on Thu Jul 18, 2013 11:16 pm, edited 1 time in total.

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: no audio when playing?

Post by SteveTX » Thu Jul 18, 2013 11:15 pm

Apparently "play file" command is broken for android. But mobilePlaySoundOnChannel works just fine. Perhaps "play" should be deprecated for mobile.

Post Reply