[PR #9] [MERGED] Use MediaCodec as decoder #23

Closed
opened 2026-02-28 14:24:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/devgianlu/librespot-android/pull/9
Author: @devgianlu
Created: 5/2/2021
Status: Merged
Merged: 5/5/2021
Merged by: @devgianlu

Base: masterHead: android-decoder


📝 Commits (5)

  • f8754bb Trying to use MediaCodec
  • 168e9e3 Working AndroidNativeDecoder with MediaExtractor and MediaCodec
  • 751673f Fallback to other decoders in case of failure
  • 7d7c9a9 #10 Enable modern Java on API level 23
  • ce508de AndroidNativeDecoder works for MP3 out-of-the-box

📊 Changes

9 files changed (+194 additions, -5 deletions)

View changed files

📝 app/build.gradle (+7 -1)
📝 app/src/main/java/xyz/gianlu/librespot/android/LibrespotApp.java (+5 -1)
📝 app/src/main/java/xyz/gianlu/librespot/android/Utils.java (+1 -1)
📝 librespot-android-decoder-tremolo/src/main/AndroidManifest.xml (+1 -2)
librespot-android-decoder/.gitignore (+1 -0)
librespot-android-decoder/build.gradle (+31 -0)
librespot-android-decoder/src/main/AndroidManifest.xml (+4 -0)
librespot-android-decoder/src/main/java/xyz/gianlu/librespot/player/decoders/AndroidNativeDecoder.java (+143 -0)
📝 settings.gradle (+1 -0)

📄 Description

  • Write vorbis decoder
  • Configure the decoder with the correct audio format data (sample rate, # channels, ...)
  • Fix presentation time
  • Write MP3 decoder

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/devgianlu/librespot-android/pull/9 **Author:** [@devgianlu](https://github.com/devgianlu) **Created:** 5/2/2021 **Status:** ✅ Merged **Merged:** 5/5/2021 **Merged by:** [@devgianlu](https://github.com/devgianlu) **Base:** `master` ← **Head:** `android-decoder` --- ### 📝 Commits (5) - [`f8754bb`](https://github.com/devgianlu/librespot-android/commit/f8754bb0361d71855ded2c12631ded01ea6ae908) Trying to use MediaCodec - [`168e9e3`](https://github.com/devgianlu/librespot-android/commit/168e9e39428ccad829c65de4e4c4527b3ea6b7ea) Working AndroidNativeDecoder with MediaExtractor and MediaCodec - [`751673f`](https://github.com/devgianlu/librespot-android/commit/751673f557a1bcbbf0d54dd7134a776e497063e3) Fallback to other decoders in case of failure - [`7d7c9a9`](https://github.com/devgianlu/librespot-android/commit/7d7c9a9597a771b35021e5023b23505ef3e3ee5e) #10 Enable modern Java on API level 23 - [`ce508de`](https://github.com/devgianlu/librespot-android/commit/ce508ded952bdd372cb426ab1ff3043daa92aa25) AndroidNativeDecoder works for MP3 out-of-the-box ### 📊 Changes **9 files changed** (+194 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `app/build.gradle` (+7 -1) 📝 `app/src/main/java/xyz/gianlu/librespot/android/LibrespotApp.java` (+5 -1) 📝 `app/src/main/java/xyz/gianlu/librespot/android/Utils.java` (+1 -1) 📝 `librespot-android-decoder-tremolo/src/main/AndroidManifest.xml` (+1 -2) ➕ `librespot-android-decoder/.gitignore` (+1 -0) ➕ `librespot-android-decoder/build.gradle` (+31 -0) ➕ `librespot-android-decoder/src/main/AndroidManifest.xml` (+4 -0) ➕ `librespot-android-decoder/src/main/java/xyz/gianlu/librespot/player/decoders/AndroidNativeDecoder.java` (+143 -0) 📝 `settings.gradle` (+1 -0) </details> ### 📄 Description - [x] Write vorbis decoder - [x] Configure the decoder with the correct audio format data (sample rate, # channels, ...) - [x] Fix presentation time - [x] Write MP3 decoder --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:24:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-android#23
No description provided.