aschober / vinyl-cast

Listen to vinyl records wirelessly throughout your home using an Android device.
MIT License
150 stars 32 forks source link

No audio from App - Turntable with USB output #15

Closed Sidelobe closed 4 years ago

Sidelobe commented 4 years ago

First of all, thanks you Allen for all the time you've invested in this great project!

I can't get it to work, but I feel I'm very close - maybe somebody has a hint that can help me.

I'm using a LG G4 (LineageOS 15.1, Android 8.1). OTG mode seems to work fine - I can connect and use a mouse and an USB stick. Vinyl-Cast recognizes my turntable (Teac TN300) as a USB device. I can connect to my Chromecast Audio at home and hear the chord sound through my speaker. But when I activate Vinyl-Cast, no audio arrives comes out my chromecast device.

When I select the phone's speaker as output device, I don't hear anything, so most likely Vinyl-Cast is not receiving proper audio from the USB device. I remember seing something like 48kHz sampling rate in the settings menu, so some sort of audio stream is received by the app.

Anybody has experience in connecting a turntable with USB output?

aschober commented 4 years ago

@Sidelobe appreciate you checking out the project!

As one way to debug where issue lies, can you check if the background of the main UI in Vinyl Cast is moving when you're all connected and playing audio? When Vinyl Cast app is "playing", the grey bars should move up/down with the audio being recorded (like a graphic equalizer). If the grey bars are not moving a lot, then the Vinyl Cast app is not recording the audio stream as expected. Also if you select a 'Local Playback Device' then you should hear audio being recorded being played back on your LG G4.

Couple other ideas --

Annoyingly, the performance of the native audio APIs on Android can vary significantly between Android devices; lots of details are left up to device manufacturer to implement and they are not all the same so problems occurring on certain devices and Android versions are the most common issue.

Post an update if you learn anything more and I can try to help a bit more.

Sidelobe commented 4 years ago

Thank you for your tips, Allen!

I methodically went through everything on your list — it turns out the “low latency playback” does the trick!! I’m listening to my vinyls on my balcony right now 🤗🤗

My android phone is somehow not charging, but that’s most likely due to the OTG adapter. I’ll order another one to test, but for now, it works fine

Thanks for your help - and thanks again for developing this and for sharing!