freshollie / monkeyboard-radio-android

Monkeyboard - FM & DAB/DAB+ radio for android
GNU General Public License v3.0
38 stars 18 forks source link

Audio routing #25

Open marcusbirkin opened 4 years ago

marcusbirkin commented 4 years ago

As the monkeyboard outputs audio to a 3.5mm jack, and not over USB; if the board was connected to the line-in/mic-in of a USB sound card, would it be possible for the application to setup audio routing withing Android. Directing the audio input to the speakers or USB sound card?

freshollie commented 4 years ago

Hi,

It is possible to do, but without the hardware it would not be easy for me to develop or test. Does the sound device just appear as a microphone input?

If you wanted to have a go with development, you would just need to relay the bytes from the microphone buffer to the speaker.

The RadioPlayerService controls playback, so the functionality would need to be added there: https://github.com/freshollie/monkeyboard-radio-android/blob/master/app/src/main/java/com/freshollie/monkeyboard/keystoneradio/playback/RadioPlayerService.java