Data Files

The application relies on standard sound files for two of its sounds. It also requires two additional sound files to be installed. These data files are described in files that are processed by the Meson build tool.

Describing the Files

The data/sounds directory contains the custom sound files that the application needs at run-time. These are installed with the rest of the application’s code and resources in a standard location, then accessed when required.

In the repository, the files are simply stored within the data/sounds directory. The meson.build file contains the following rule to copy them into the application’s data directory when the application is installed:

install_subdir('sounds',
  install_dir: pkgdatadir
)

The location of the data directory is provided to the application by the config Python module that is generated when the application is installed.