24 lines
382 B
C
24 lines
382 B
C
#include "miniaudio/miniaudio.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
ma_result result;
|
|
ma_engine engine;
|
|
|
|
result = ma_engine_init(NULL, &engine);
|
|
if (result != MA_SUCCESS) {
|
|
return -1;
|
|
}
|
|
|
|
ma_engine_play_sound(&engine, "assets/hop_adult.wav", NULL);
|
|
|
|
printf("Press Enter to quit...");
|
|
getchar();
|
|
|
|
ma_engine_uninit(&engine);
|
|
|
|
return 0;
|
|
}
|