Skip to content

Commit

Permalink
Add wav conversion to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
viktordanov committed Jun 30, 2020
1 parent 8e0ea6c commit 738e7a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
.vscode/settings.json
*.bin
megolovania
memory.gsc
*.gsc
*.wav
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BINARY_NAME=megolovania
MUSIC_FILE=memory.gsc
MUSIC_FILE_WAV=memory.wav


.PHONY: build run play
.PHONY: build run play wav

all: build run play

Expand All @@ -16,3 +16,6 @@ run:

play:
ffplay $(MUSIC_FILE) -autoexit -showmode 1 -f f64le -ar 48000

wav:
ffmpeg -f f64le -ar 48000 -i $(MUSIC_FILE) $(MUSIC_FILE_WAV)

0 comments on commit 738e7a5

Please sign in to comment.