[GH-ISSUE #458] Android audio backend #291

Closed
opened 2026-02-27 19:29:50 +03:00 by kerem · 3 comments
Owner

Originally created by @provokateurin on GitHub (Apr 10, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/458

I'm new to rust and this project, so please correct my mistakes:
I want to use librespot on Android and was already able to include it in my app and start playing, but it crashes while playing. My expectation was that it would crash, because there is no audio backend implementation for Android.
Is that right?

If so I would like to make a request for an Android audio backend.
I don't know what the requirements for a library that would work are, but figured out there is a library called oboe which is and Android audio library. Would that work?

As I need to learn Rust for my project (at least a bit) I might come up with a solution on my own (and will try to upstream it), but I wanted you to know that there is a need for an Android audio backend.

(I hope I haven't said anything really dumb.)

Thanks in advance and thank you all for such a great project! I really appreciate your effort.

EDIT: I also found this library which seems much more suited: https://github.com/AmpMe/opensles-sys

Originally created by @provokateurin on GitHub (Apr 10, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/458 I'm new to rust and this project, so please correct my mistakes: I want to use librespot on Android and was already able to include it in my app and start playing, but it crashes while playing. My expectation was that it would crash, because there is no audio backend implementation for Android. Is that right? If so I would like to make a request for an Android audio backend. I don't know what the requirements for a library that would work are, but figured out there is a library called `oboe` which is and Android audio library. Would that work? As I need to learn Rust for my project (at least a bit) I might come up with a solution on my own (and will try to upstream it), but I wanted you to know that there is a need for an Android audio backend. (I hope I haven't said anything really dumb.) Thanks in advance and thank you all for such a great project! I really appreciate your effort. EDIT: I also found this library which seems much more suited: https://github.com/AmpMe/opensles-sys
kerem 2026-02-27 19:29:50 +03:00
  • closed this issue
  • added the
    audio
    label
Author
Owner

@mr-berndt commented on GitHub (Jun 8, 2020):

From what I understand developers are on the long run actually trying to drop all audio outputs exept rodio. You might investigate if rodio works under android.

I got this from here:
https://github.com/librespot-org/librespot/issues/195

<!-- gh-comment-id:640529740 --> @mr-berndt commented on GitHub (Jun 8, 2020): From what I understand developers are on the long run actually trying to drop all audio outputs exept rodio. You might investigate if rodio works under android. I got this from here: https://github.com/librespot-org/librespot/issues/195
Author
Owner

@Pajn commented on GitHub (Oct 29, 2020):

rodio is using cpal, which seems to have recently gotten support for Android https://github.com/RustAudio/cpal/pull/468

<!-- gh-comment-id:718437358 --> @Pajn commented on GitHub (Oct 29, 2020): rodio is using cpal, which seems to have recently gotten support for Android https://github.com/RustAudio/cpal/pull/468
Author
Owner

@provokateurin commented on GitHub (Oct 29, 2020):

Oh nice

<!-- gh-comment-id:718502921 --> @provokateurin commented on GitHub (Oct 29, 2020): Oh nice
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#291
No description provided.