Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sound from AudioPro A26 #74

Open
jakob-lilliemarck opened this issue Aug 30, 2022 · 1 comment
Open

No sound from AudioPro A26 #74

jakob-lilliemarck opened this issue Aug 30, 2022 · 1 comment
Labels
question Further information is requested

Comments

@jakob-lilliemarck
Copy link

Hi,
I'm trying to use your app to stream my computer sound to our AudioPro A26 wifi speakers. I've managed to stream to them using the bubbleupnp mobile app and using pulseaudio-dlna, but it was not without alot of lag - so trying this in hope that it'll be in sync :)

Anyway, I can build and run the app without issues on my laptop (Manjaro os). The speakers pop up as an available renderer and when I set the format option to FLAC and start streaming I can hear the speaker "turning on", like they're on but got no sound.

Looking at the debug log in the app it seems the streaming starts and immediatly turns off? See the last few lines:

Configuration { server_port: Some(5901), auto_resume: false, sound_source: "pulse", sound_source_index: Some(1), log_level: Info, ssdp_interval_mins: 1.0, auto_reconnect: false, disable_chunked: false, use_wave_format: false, bits_per_sample: Some(16), streaming_format: Some(Flac), monitor_rms: false, last_renderer: "WiiMu LinkPlayer AudioPro_A26_0695", last_network: "192.168.1.240", config_dir: "/home/jakob/.swyh-rs" }
*W*W*>Running DEBUG build => log level set to DEBUG!
Setup audio sources
Sorry, but you don't have permissions to raise priority...
Capturing audio from: pulse
Default audio SupportedStreamConfig { channels: 2, sample_rate: SampleRate(44100), buffer_size: Range { min: 3, max: 4194304 }, sample_format: F32 }
Discover networks
Starting SSDP discovery
The wave_reader is now receiving samples
The streaming server is listening on http://192.168.1.240:5901/stream/swyh.wav
Streaming sample rate: 44100, bits per sample: 16, format: FLAC
AV Start playing on AudioPro_A26_0695 host=192.168.1.130 port=49152 from 192.168.1.240 using AvTransport Play
AV Stop playing on AudioPro_A26_0695 host=192.168.1.130 port=49152
Received request /stream/swyh.wav from 192.168.1.130:51609
Streaming audio/FLAC, input sample format F32, channels=2, rate=44100, disable chunked=false to 192.168.1.130:51609

Thankful for any help - would be awesome to be able to use our wifi-speakers as a playback device for gaming, films, etc.

@dheijl
Copy link
Owner

dheijl commented Aug 30, 2022

While swyh-rs does not do any extra buffering, it will never be in sync with video or gaming, unless you can delay the video like VLC can do.
By the time an audio buffer, typically 8 KB, has been captured by the OS and delivered to the swyh-rs call-back it is already out of sync, and then it has not even been transmitted to the receiving device.

But this does not explain why flac is not being played. Could you disable chunked transfer, enable the rms monitor, check that the rms monitor shows activity, and then attach a debug log here?

@dheijl dheijl added the question Further information is requested label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants