peacemaker Expert Licensed User Longtime User Nov 30, 2022 #1 Hi, All 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 ?
Hi, All 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 ?
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2022 #2 Which error do you get? Upvote 0
peacemaker Expert Licensed User Longtime User Nov 30, 2022 #3 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: Copy 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 Initial test UI-project is here: https://www.b4x.com/android/forum/t...m-comparing-to-jaudiotrack.144502/post-916069 Upvote 0
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: Copy 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 Initial test UI-project is here: https://www.b4x.com/android/forum/t...m-comparing-to-jaudiotrack.144502/post-916069
peacemaker Expert Licensed User Longtime User Nov 30, 2022 #4 SOLVED: Code: Copy Signal.Start(Me,"gene_rate",Null) Upvote 0