Include ffmpeg extensions for some audio formats (#109)

Related to #103

Adds ffmpeg decoder module to support a few extra audio formats such as
AC3, EAC3, DTS, & TrueHD.

This increases the apk size by about 5.4mb (release 17.4mb->22.8mb), but
definitely worth it for the added support.
This commit is contained in:
damontecres 2025-10-29 20:34:41 -04:00 committed by GitHub
parent f76556f90e
commit b1275ae210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 666 additions and 5 deletions

View file

@ -19,6 +19,7 @@ env:
APK_DEBUG_SHORT_NAME: Wholphin-debug.apk
BRANCH_NAME: ${{ github.ref_name }}
BUILD_TOOLS_VERSION: 36.0.0
NDK_VERSION: "29.0.14206865"
jobs:
build:
@ -40,7 +41,7 @@ jobs:
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: "tools platform-tools build-tools;${{ env.BUILD_TOOLS_VERSION }}"
packages: "tools platform-tools build-tools;${{ env.BUILD_TOOLS_VERSION }} ndk;${{ env.NDK_VERSION }}"
- name: Get version names
run: |
@ -55,6 +56,10 @@ jobs:
echo "LATEST_TAG=$LATEST_TAG" >> "$GITHUB_ENV"
echo "VERSION_NAME=$VERSION_NAME" >> "$GITHUB_ENV"
echo "TAG_NAME=$TAG_NAME" >> "$GITHUB_ENV"
- name: Build ffmpeg decoder
id: ffmpeg-decoder
run: |
./build_ffmpeg_decoder.sh "${{ env.ANDROID_SDK_ROOT }}/ndk/${{ env.NDK_VERSION }}"
- name: Build release app
id: build
env:

View file

@ -10,6 +10,8 @@ defaults:
env:
BUILD_TOOLS_VERSION: 36.0.0
BUILD_DIRS_ARTIFACT: build-dirs
NDK_VERSION: "29.0.14206865"
jobs:
pre-commit:
@ -43,7 +45,11 @@ jobs:
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: "tools platform-tools build-tools;${{ env.BUILD_TOOLS_VERSION }}"
packages: "tools platform-tools build-tools;${{ env.BUILD_TOOLS_VERSION }} ndk;${{ env.NDK_VERSION }}"
- name: Build ffmpeg decoder
id: ffmpeg-decoder
run: |
./build_ffmpeg_decoder.sh "${{ env.ANDROID_SDK_ROOT }}/ndk/${{ env.NDK_VERSION }}"
- name: Build app
id: buildapp
run: |

View file

@ -12,6 +12,7 @@ defaults:
env:
APK_SHORT_NAME: Wholphin.apk
BUILD_TOOLS_VERSION: 36.0.0
NDK_VERSION: "29.0.14206865"
jobs:
publish:
@ -36,7 +37,11 @@ jobs:
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: "tools platform-tools build-tools;${{ env.BUILD_TOOLS_VERSION }}"
packages: "tools platform-tools build-tools;${{ env.BUILD_TOOLS_VERSION }} ndk;${{ env.NDK_VERSION }}"
- name: Build ffmpeg decoder
id: ffmpeg-decoder
run: |
./build_ffmpeg_decoder.sh "${{ env.ANDROID_SDK_ROOT }}/ndk/${{ env.NDK_VERSION }}"
- name: Build app
id: buildapp
env: