Alienhead Posted April 2, 2024 Share Posted April 2, 2024 Works fine in C++ but in LUA it would seem only 27 unique sound files can be loaded, the 28th stops the runtime window from responding. Here's some sample code. sounds = {} for t=1, 28 do sounds[t] = LoadSound("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Sound/notification.wav", LOAD_UNMANAGED ) end sounds[28]:Play() Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Solution Josh Posted April 2, 2024 Solution Share Posted April 2, 2024 I suspect the 28th step is triggering a garbage collection step... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted April 3, 2024 Author Share Posted April 3, 2024 Not sure if this helps any, but I think the problem goes beyond loading sound clips. Pretty much anything new I try to add to the project - be it materials, models, posteffects, even adding a new blank component file all result in the same thing - app freeze on startup. So maybe instead of just concentrating on loading a 28th sound - it could be a more system wide problem, environmental space or something. If it'll help you any, I'll zip up the entire project and send it to ya. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted April 7, 2024 Share Posted April 7, 2024 Yes, please send your project. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted April 7, 2024 Author Share Posted April 7, 2024 I uploaded to your email 5 days ago.. 1 Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted April 10, 2024 Share Posted April 10, 2024 How do I trigger the bug in your program? I tried adding this code right before the main loop but there was no error: sounds = {} for t=1, 28 do sounds[t] = LoadSound("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Sound/notification.wav", LOAD_UNMANAGED ) end sounds[28]:Play() while window:KeyDown(KEY_ESCAPE) == false and window:Closed() == false do Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted April 10, 2024 Share Posted April 10, 2024 If I increase the number of sounds I am getting a syntax error in another part of the code...invstigating further... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted April 10, 2024 Share Posted April 10, 2024 I sent a PM... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted April 12, 2024 Author Share Posted April 12, 2024 Not getting Pm's it seems Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted April 12, 2024 Share Posted April 12, 2024 https://www.ultraengine.com/community/messenger/1685224954/ Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted April 12, 2024 Author Share Posted April 12, 2024 Oops! We could not locate the item you are trying to view. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted April 12, 2024 Share Posted April 12, 2024 It says that you left the conversation! I sent a new PM. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted April 24, 2024 Author Share Posted April 24, 2024 This seems to be fixed now. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted April 24, 2024 Share Posted April 24, 2024 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.