Format and document utility files (#246)
* Format and document utility files * Add Doxyfile * small updates for cleanup * Final touches for util docs * Replace `_` with `s_` for static functions * update for clang-format changes * Update include/audio_utils.h Co-authored-by: MeirGavish <meir.gavish@gmail.com> * Apply suggestions from code review Co-authored-by: MeirGavish <meir.gavish@gmail.com> * Update include/audio_utils.h Co-authored-by: MeirGavish <meir.gavish@gmail.com> * Update include/graphic_utils.h Co-authored-by: MeirGavish <meir.gavish@gmail.com> * Make clang-format happy :) * Update gitignore for doxygen * restor graphic_utils.c to main * update graphics utils * tmp * tmp * get it to compile * fix some bad merge mistakes * Fix clang format * Apply suggestions from code review Co-authored-by: MeirGavish <meir.gavish@gmail.com> * make clang-format happy --------- Co-authored-by: MeirGavish <meir.gavish@gmail.com>
This commit is contained in:
+15
-8
@@ -1,8 +1,15 @@
|
||||
#include "audio_utils.h"
|
||||
#include <maxmod.h>
|
||||
|
||||
void play_sfx(mm_word id, mm_word rate)
|
||||
{
|
||||
mm_sound_effect sfx = { {id}, rate, 0, SFX_DEFAULT_VOLUME, SFX_DEFAULT_PAN, };
|
||||
mmEffectEx(&sfx);
|
||||
}
|
||||
#include "audio_utils.h"
|
||||
|
||||
#include <maxmod.h>
|
||||
|
||||
void play_sfx(mm_word id, mm_word rate)
|
||||
{
|
||||
mm_sound_effect sfx = {
|
||||
{id},
|
||||
rate,
|
||||
0,
|
||||
SFX_DEFAULT_VOLUME,
|
||||
SFX_DEFAULT_PAN,
|
||||
};
|
||||
mmEffectEx(&sfx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user