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

Audio StreamPacketizer hangs when proxy closed, endPCM() fails #670

Open
pbulka opened this issue Jan 25, 2018 · 0 comments
Open

Audio StreamPacketizer hangs when proxy closed, endPCM() fails #670

pbulka opened this issue Jan 25, 2018 · 0 comments
Labels
bug A defect in the library manager-streaming-audio Relating to the manager layer - audio streaming

Comments

@pbulka
Copy link

pbulka commented Jan 25, 2018

When disconnecting from a TDK there is always a StreamPacketizer thread that remains running in the app and eating the CPU.
The run loop in the StreamPacketizer keeps reading from the InputStream and returns -1, it never exits.
I have traced the problem down to the audio stream, once it is started, it does not get cleaned-up when the proxy session ends.
Calling endPCM() in onProxyClosed does not work, it just returns false because the SdlSession object is different than the one used to start the audio stream.

As it is right now there is no elegant way to stop an audio stream when connecting/disconnecting to the
TDK without the StreamPacketizer thread hanging.

100% Reproducible on SDL 4.3 and 4.4. Tried with various devices.

@joeljfischer joeljfischer added bug A defect in the library manager-streaming-audio Relating to the manager layer - audio streaming labels May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library manager-streaming-audio Relating to the manager layer - audio streaming
Projects
None yet
Development

No branches or pull requests

2 participants