I have notice there are no sample projects for getting started with the C-API, so I thought I would make one here as a starting point for the project/build settings :)
Please first clone this repo. To build, only CMake is used.
Before building, make sure you have downloaded (and un-zipped) the SteamAudio C API, into a folder at the root level of this repository.
The latest version can also be downloaded from the GitHub repository tags/releases page.
I have simplified the setup of this to avoid any confusion, the configuration, building and running of the application can be completed by running:
>> chmod +x buildrun.sh
>> ./buildrun.sh
This will:
- Authorize your user on MacOS/Unix operating systems to run the build file
- Create a build folder
- Configure CMake files within this build folder
- Run the CMake build
- Run the application built by CMake
Once this builds and runs, from then on you can simply use:
>> ./buildrun.sh
Note: This is currently only supported for MacOS, other OS support could be added if it is requested.
This project is just a starting point of how I thought I would use the SteamAudio C-API and is not necessarily how the authors decided it should be used.
Please feel free to modify the build system to suit your needs, and it would be cool to be made aware of any projects this is used in!
This project is solely meant as a starting point for using the SteamAudio API and is made by an independent 3rd Party (myself) and not by the original library authors/creators.
For further information regarding licensing, please see the official SteamAudio API LICENSE.md file, or the GitHub repository.