Alienhead Posted April 2 Share Posted April 2 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 Solution Share Posted April 2 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 Author Share Posted April 3 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 Share Posted April 7 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 Author Share Posted April 7 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 Share Posted April 10 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 Share Posted April 10 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 Share Posted April 10 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 Author Share Posted April 12 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 Share Posted April 12 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 Author Share Posted April 12 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 Share Posted April 12 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 Author Share Posted April 24 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 Share Posted April 24 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.