[Csnd] Csound for Android - get input from other apps
Date | 2020-04-24 21:39 |
From | fftoby |
Subject | [Csnd] Csound for Android - get input from other apps |
Hi all - I'm hoping to make an Android app by modifying one of the CsoundForAndroid examples. I want the app to take audio from other apps (i.e. Spotify) as an audio input stream it feeds to Csound. Ultimately I want the user to be able to put effects on the music they're listening to. I'm not sure how to set this up on the java side of things, but I did find this class in the Android dev guide: https://developer.android.com/reference/android/media/AudioPlaybackCaptureConfiguration and I'm wondering if adding it to my CsoundObj (in Android Studio) could be the key. Though I'm unsure how to implement this properly in java. Thank you for your consideration! -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2020-04-25 04:17 |
From | Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Csound for Android - get input from other apps |
Hello, I think the point of the example you found in Android Developer Guide is to capture audio inside the AudioRecord class. So, the way to get audio samples from the external application is likely to use the "read" method of AudioRecord. This will give you an array of float or double (audio samples), that can be used to fill the Csound input. I'm not sure how to do this with CsoundObj.java (if that is what you use). Johann
Le vendredi 24 avril 2020 à 22:50:05 UTC+2, fftoby <toby.bercu@gmail.com> a écrit :
Hi all - I'm hoping to make an Android app by modifying one of the CsoundForAndroid examples. I want the app to take audio from other apps (i.e. Spotify) as an audio input stream it feeds to Csound. Ultimately I want the user to be able to put effects on the music they're listening to. I'm not sure how to set this up on the java side of things, but I did find this class in the Android dev guide: and I'm wondering if adding it to my CsoundObj (in Android Studio) could be the key. Though I'm unsure how to implement this properly in java. Thank you for your consideration! -- Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here |
Date | 2020-04-26 16:44 |
From | Tobias Bercu |
Subject | Re: [Csnd] Csound for Android - get input from other apps |
Hi Johann, Thanks for the info. I am indeed trying to do this with CsoundObj.java. It's already set up to feed audio to csound from the phone's mic, I'll see if I can alter that part of the code based on your suggestions. Though I am not super confident about doing this in Java, if and when I do get results I'll post them here. Toby On Fri, Apr 24, 2020 at 11:17 PM Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
|