Add audio (don't listen to it)
This commit is contained in:
parent
f08af8aca8
commit
8fe4e980bd
4 changed files with 8 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -37,7 +37,7 @@ MSVCSRC = $(patsubst %,<ClCompile Include=\"%\\\" \\/>,$(SOURCES))
|
||||||
OBJ = $(SOURCES:.c=.o)
|
OBJ = $(SOURCES:.c=.o)
|
||||||
DOXYFILE = documentation/Doxyfile
|
DOXYFILE = documentation/Doxyfile
|
||||||
VSCFILES = $(PROGNAME).vcxproj $(PROGNAME).sln
|
VSCFILES = $(PROGNAME).vcxproj $(PROGNAME).sln
|
||||||
EXTRAFILES = COPYING $(wildcard shaders/*.?s images/*.png fonts/*.ttf) $(VSCFILES)
|
EXTRAFILES = COPYING $(wildcard shaders/*.?s images/*.png fonts/*.ttf audio/*.mid) $(VSCFILES)
|
||||||
DISTFILES = $(SOURCES) Makefile $(HEADERS) $(DOXYFILE) $(EXTRAFILES)
|
DISTFILES = $(SOURCES) Makefile $(HEADERS) $(DOXYFILE) $(EXTRAFILES)
|
||||||
|
|
||||||
# API 8
|
# API 8
|
||||||
|
|
1
audio/README.md
Normal file
1
audio/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Son généré via Beepbox : https://tinyurl.com/2n5f8gmp
|
BIN
audio/ambiance.mid
(Stored with Git LFS)
Normal file
BIN
audio/ambiance.mid
(Stored with Git LFS)
Normal file
Binary file not shown.
6
main.c
6
main.c
|
@ -4,14 +4,14 @@
|
||||||
#include "includes/animations.h"
|
#include "includes/animations.h"
|
||||||
|
|
||||||
// Son de fond
|
// Son de fond
|
||||||
// static Mix_Music *_ambiance = NULL;
|
static Mix_Music *_ambiance = NULL;
|
||||||
|
|
||||||
// Dimensions initiales de la fenêtre
|
// Dimensions initiales de la fenêtre
|
||||||
GLuint _dims[] = {1280, 720};
|
GLuint _dims[] = {1280, 720};
|
||||||
|
|
||||||
// Comportement à la fermeture du programme
|
// Comportement à la fermeture du programme
|
||||||
static void closure(void) {
|
static void closure(void) {
|
||||||
// freeMusic(_ambiance);
|
freeMusic(_ambiance);
|
||||||
gl4duClean(GL4DU_ALL);
|
gl4duClean(GL4DU_ALL);
|
||||||
|
|
||||||
printf("Merci du visionnage !\n");
|
printf("Merci du visionnage !\n");
|
||||||
|
@ -25,7 +25,7 @@ int main(int argc, char *argv[]) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// initMusic(_ambiance, "audio/ambiance.mid");
|
initMusic(_ambiance, "audio/ambiance.mid");
|
||||||
|
|
||||||
// Animations
|
// Animations
|
||||||
GL4DHanime animations[] = {{7000, lights, NULL, NULL},
|
GL4DHanime animations[] = {{7000, lights, NULL, NULL},
|
||||||
|
|
Reference in a new issue