my program run 100% from compiler put not run 100% from dist

In the above you are using the relative path to look up you wav file. From the root folder of the project you will read ‘src/azcar/sounds/.wav’, but from the dist folder you are effectively reading from ‘dist/src/azcar/sounds/.wav’.

You can start to test this by entering the absolute path to the folder as a first step. After that you can then move to passing in a sound folder path as a variable to your application.

Leave a Comment