Archived
1
Fork 0

Reformat audio module

This commit is contained in:
Joshua Goins 2022-08-15 10:55:59 -04:00
parent 069318dc0b
commit 9656552878
3 changed files with 12 additions and 12 deletions

View file

@ -3,10 +3,10 @@
#include "path.hpp"
/*
* Audio API
*/
* Audio API
*/
namespace audio {
void initialize();
void play_file(const prism::path& path, float gain = 1.0f);
}
} // namespace audio

View file

@ -23,7 +23,7 @@ void audio::initialize() {
void audio::play_file(const prism::path& path, const float gain) {
auto audio_file = prism::open_file(path);
if(audio_file == std::nullopt)
if (audio_file == std::nullopt)
return;
audio_file->read_all();