Playmusic and sound length problems
Posted: Sat Nov 23, 2019 1:11 am
i have a problem wih playmusic instruction, in android is not possible to know if the song is finished, i have problems with IsMusicPlaying also, in android if you start the music the result ever is True, under windows work fine.
Under windows and android the song length is around 17 seconds more that the real length (17 seconds of blank space), and i need do this to
solve the problem:
dura = GetAttribute(#MUSIC, 100, #ATTRDURATION)
posi = GetAttribute(#MUSIC, 100, #ATTRPOSITION)
plyn = GetAttribute(#MUSIC, 100, #ATTRPLAYING)
dura2=dura-17000
If posi>dura2
StopMusic(100)
musica=0
EndIf
.....
That´s a bug? i´m doing something bad?
Under windows and android the song length is around 17 seconds more that the real length (17 seconds of blank space), and i need do this to
solve the problem:
dura = GetAttribute(#MUSIC, 100, #ATTRDURATION)
posi = GetAttribute(#MUSIC, 100, #ATTRPOSITION)
plyn = GetAttribute(#MUSIC, 100, #ATTRPLAYING)
dura2=dura-17000
If posi>dura2
StopMusic(100)
musica=0
EndIf
.....
That´s a bug? i´m doing something bad?