This week I added more interfaces to the audio library and started working on AudioBuilder.
Things I’ve completed this week:
Modify Load() to enable autoplay and loop.
Modify Play() so that you can play the audio from start or start the loop.
Replace Play() with Play(bool, bool). The default value is false, which means resuming.
Add an interface for exiting the loop.
Add getters and setters for pitch and volume.
You can use GetPitch()/GetVolume() and SetPitch(float)/SetVolume(float).
Add a data structure to store audio configuration.
Create AudioBuilder.
Now you can use a Lua format file to configure audio settings.
Comments