I have an audio applications that waits to update roImageCanvas with a Push until the audio is playing.
On my debug screen, I can see that msg.GetIndex reaches 100 (I am dividing by 10), but the progress indicator gets stuck at 75% so the roImageCanvas push is never triggered. I am reusing code that has been post it before, so I don't understand why it is stuck.
The stream is from StreamOn and it starts to play and triggers a "start to play" roAudioPlayer event.
This inside an EventLoop.
msg = wait(0, m.port)
if msg <> invalid
'If this is a startup progress status message, record progress
'and update the UI accordingly:
if msg.isStatusMessage() and msg.GetMessage() = "startup progress"
m.paused = false
progress% = msg.GetIndex() / 10
if m.progress <> progress%
m.progress = progress%
m.paint()
end if
I then check to see the value of m.progress and if it is less than 94 I can continue to show the loading screen. The problem is at while msg.GetIndex reaches 100 (again I am dividing by 10) m.progress never does so the addition code is not triggers.
if m.progress < 95
list.Push({
Color: "#000000"
TargetRect: { x: 75, y: 475, w: 200, h: 100 }
})
list.Push({
Text: "Loading..." + m.progress.tostr() + "%"
TargetRect: { x: 75, y: 475, w: 200, h: 100 }
})
else 'Audio is currently playing
This is killing me, so any direction is appreciated. I promise I have spent over 12 hours trying to debug this issue.