Skip to content

Commit

Permalink
Add support for the MIDI playback
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz committed Jan 4, 2025
1 parent b310179 commit ae788dd
Show file tree
Hide file tree
Showing 93 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ android/.idea
android/.gradle

# Automatically created Android assets
android/app/src/main/assets/files/
android/app/src/main/assets/

# Mac magic folders
.DS_Store
Expand Down
10 changes: 9 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ tasks.register('copyH2D', Copy) {
into 'src/main/assets/files/data'
}

tasks.register('copyTimidity', Copy) {
from('../../files/timidity') {
include 'instruments/*.pat'
include 'timidity.cfg'
}
into 'src/main/assets'
}

tasks.register('copyTranslations', Copy) {
from('../../files/lang') {
include '*.mo'
Expand All @@ -107,5 +115,5 @@ tasks.register('copyTranslations', Copy) {
}

preBuild {
dependsOn copyH2D, copyTranslations
dependsOn copyH2D, copyTimidity, copyTranslations
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/dist/Makefile.emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ CCFLAGS := $(filter-out -pthread,$(CCFLAGS)) \
LDFLAGS := $(filter-out -pthread,$(LDFLAGS)) \
--preload-file ../../../files/data/resurrection.h2d@/files/data/resurrection.h2d \
--preload-file ../../../files/lang/@/files/lang/ \
--preload-file ../../../files/soundfonts/fheroes2.sf3@/files/soundfonts/fheroes2.sf3 \
--preload-file ../../../files/timidity/@/etc/ \
-sASYNCIFY \
-sASYNCIFY_STACK_SIZE=20480 \
-sENVIRONMENT=web \
-sINITIAL_MEMORY=128mb \
-sNO_DISABLE_EXCEPTION_CATCHING \
-sSDL2_MIXER_FORMATS=mid,mp3,ogg \
-sSTACK_SIZE=262144 \
-lidbfs.js

Expand Down

0 comments on commit ae788dd

Please sign in to comment.