UnderwareDESIGN

PlayBASIC => Beginners => Topic started by: Cor on August 14, 2005, 07:14:28 AM

Title: Synchronize mp3 with strips (images)
Post by: Cor on August 14, 2005, 07:14:28 AM
Is it possible to synchronize a sound files with strips (images)
When a certain time of a soundfile elapsed i want to draw an image

Must be timeline based


If this is not possible, anybody who knows software for this?

grCor
Title: Synchronize mp3 with strips (images)
Post by: kevin on August 14, 2005, 08:20:47 AM
I'm not sure what your trying to do, but if you just want to display images along a fixed time line.  Use the  timer()
Title: Synchronize mp3 with strips (images)
Post by: Draco9898 on August 14, 2005, 01:36:18 PM
Use tick, IF Tick=1, a second has elasped...Use Mtick=1 if you need milliseconds


`This goes before our loop
Global Tick: Global MTick: Global DTick

`This goes inside our loop
HandleTime()

`This goes after our loop
`handle time
Psub HandleTime()
Tick=0: MTick=0: DTick=0
GameTime#=(Timer()-GameBeginTime#)/1000
If GameTime#>1
 GameBeginTime#=Timer()
 Tick=1
EndIf
GameTime2#=(Timer()-GameBeginTime2#)/100
If GameTime2#>1
 GameBeginTime2#=Timer()
 MTick=1
EndIf
GameTime3#=(Timer()-GameBeginTime3#)/100
If GameTime3#>0.1
 GameBeginTime3#=Timer()
 DTick=1
EndIf
EndPsub