|
al_install_audio fails when started from quick launch bar |
Felix-The-Ghost
Member #9,729
April 2008
|
I've put off asking about this for a long time because it's not too major an issue for me, but I don't want it to be a problem for others when I distribute my game. My game runs fine. Any advice on what I can do to make it work all the time? if(!al_install_audio()) { al_show_native_message_box(nullptr, "Error!", "", "Failed to initialize audio.", nullptr, ALLEGRO_MESSAGEBOX_ERROR); return false; }
|
Chris Katko
Member #1,881
January 2002
|
Which Windows, and which quick launch? Pinned to the start menu? Pinned to the task bar? Have you tried running the debug version Allegro in a debugger and seeing what part crashes? -----sig: |
Felix-The-Ghost
Member #9,729
April 2008
|
Mark Oates
Member #1,146
March 2001
|
That's interesting. My first thought was that the exe path might be different and some resource files are not loaded correctly. However, you're saying the actual init fails. Have you tried a bare-bones program with only al_init and al_install_audio? -- |
jmasterx
Member #11,410
October 2009
|
I can confirm experiencing the same problem on multiple machines with my games. I follow the same basic initialization pattern. Agui GUI API -> https://github.com/jmasterx/Agui |
|