Audio generator app requires to use the Threading lib, and it works as just UI B4J app, sure, in Release mode only.
But when i try to embed this code into a new B4Xpage - it does not work (in Release mode).
Maybe some forgotten nuance ?
Just the "gene_rate" sub that is to be started in a separate thread does not run.
I tried to name it with "_" also.
B4X:
Sub set_Click
Signal.Initialise("Play") 'a new thread
Signal.Start(Null,"gene_rate",Null)
End Sub
Sub gene_rate
Prepare_Data1
SDL.Start
Do While genOff=False
SDL.Write(sdat,0,sdat.Length)
Loop
End Sub