Bytecroc Posted March 26 Posted March 26 #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create window auto window = CreateWindow("Ultra Engine", 0, 0, 800, 600, displays[0], WINDOW_TITLEBAR | WINDOW_CENTER); //Load sound auto sound = LoadSound("https://raw.githubusercontent.com/Leadwerks/Documentation/master/Assets/Sound/notification.wav"); //Play sound auto speaker = CreateSpeaker(); speaker->SetSound(sound); speaker->SetLooping(true); speaker->Play(); while (window->Closed() == false) { if (window->KeyDown(KEY_ESCAPE)) break; } return 0; } This is the C++ example from the Documenation. LoadSound gives me a Blank_d.exe: 0xC0000094: Integer division by zero error. I tested also with different soundfiles. 1 Quote Leadwerks 4.x Pro, examples please for C++, english is not my native language.
Josh Posted April 4 Posted April 4 I just ran the same thing and had no problems. Are you using 0.9.8 or 0.9.9? Quote Let's build cool stuff and have fun.
Solution Josh Posted April 11 Solution Posted April 11 Marking this as solved unless anyone tells me otherwise... Quote Let's build cool stuff and have fun.
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.