Been trying some code in c++ again (coming from another language) which was long missed and stumbled upon updating a game. The question is my wxSound code can't seemed to work with my wxWidget based game. Here is my code:
wxSound *mySound;
mySound = new wxSound();
mySound->Create(_T("explosion.wav"), false);
mySound->Play( wxSOUND_ASYNC );
Build log says no errors
/bin/sh -c '/usr/bin/make -j4 -e -f Makefile'
----------Building project:...
...
...
====0 errors, 0 warnings====
I'm new to wxWidgets, is there something missing? I'm running wxWidget 3.1.5 on Ubuntu 20.04 and CodeLite.