Skip to content

Commit

Permalink
Remove audio usage
Browse files Browse the repository at this point in the history
  • Loading branch information
karjonas committed Apr 17, 2016
1 parent fb60ab4 commit e59df12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
CXX := g++
CC_FLAGS := -std=c++14 -g -O0
CC_FLAGS := -std=c++14
CPP_FILES := $(wildcard src/*.cpp)
OBJ_FILES := $(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
LD_FLAGS := -L/usr/lib -lallegro -lallegro_primitives -lallegro_font \
-lallegro_ttf -lallegro_audio -lallegro_acodec -lallegro_image
-lallegro_ttf -lallegro_image
INCLUDE := -I./src -I/usr/include/allegro5

all: ld35
Expand Down
14 changes: 1 addition & 13 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ void init(void)
al_init_font_addon(); // initialize the font addon
al_init_ttf_addon();// initialize the ttf (True Type Font) addon

if(!al_install_audio()){
abort_game("failed to initialize audio!\n");
}

if(!al_init_acodec_addon()){
abort_game("failed to initialize audio codecs!\n");
}

if (!al_reserve_samples(1)){
abort_game("failed to reserve samples!\n");
}

timer = al_create_timer(1.0 / 60);
if (!timer)
abort_game("Failed to create timer");
Expand Down Expand Up @@ -249,4 +237,4 @@ int main(int argc, char* argv[])
init();
game_loop();
shutdown();
}
}

0 comments on commit e59df12

Please sign in to comment.