Jump to content

Unique Sound Count


Alienhead
 Share

Go to solution Solved by Josh,

Recommended Posts

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()

 

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

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. 

 

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

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

 

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

If I increase the number of sounds I am getting a syntax error in another part of the code...invstigating further...

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

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...